oracle11g

VB.NET issue connecting to Oracle 11g

做~自己de王妃 提交于 2019-12-12 03:58:33
问题 OS: Windows 7 64bit VB: Visual Studio 2010 Oracle Client: 11g I am developing an application that connects to an Oracle 11g server. I am able to connect to the Oracle server via Oracle SQL Developer, ODBC (in SYSWOW64), and in VB Server Explorer. I am using the .NET reference Oracle.DataAccess located at: C:\Oracle\product\11.2.0\client_32\ODP.NET\bin\2.x\Oracle.DataAccess.dll I have tried adding the .DLL files to my bin folder as suggested by other questions and that does not work. Does

Cannot create new connection or login to added user?

时光怂恿深爱的人放手 提交于 2019-12-12 03:42:03
问题 I am using Oracle SQL Developer to connect to Oracle Express 11g and create a new user. I keep on getting the same error when I try to create a new connection (and test it) or when I try to login with a newly created username and password (mad by right-clicking "other users" table in default connection "xe") The error- Failure - Test Failed: ORA-01017: invalid username/password; logon denied How can I fix this issue ? 回答1: Seems you're using an user with not enough privilegies, try with

REGEX check only when start of line

你说的曾经没有我的故事 提交于 2019-12-12 03:37:03
问题 Suppose we want to keep the entire line of a string only if a particular word say e.g 'test' appears at starting of line. If it appears anywhere then the entire line should be removed e.g if function_test()=5; //here this entire line should be removed test sample =5; //here this entire should be there 回答1: From Oracle 10g R2 on you should be able to use the anchor \A to require the match at the beginning of the string (will only work for single-line strings thus). http://www.regular

1 id for more items

故事扮演 提交于 2019-12-12 03:36:10
问题 I have a form request_form.php, that is manage Purchase Request Form for request item. Purchase_Request_No : (automatic - autoincrement) Date : Dept : Supplier : Item_Request : Example have a 5 row : 1. 2. 3. 4. 5. I want to make once Purchase Request have 1 Purchase_Request_No. Example : Purchase_Request_No : 17 Date :25-Jul-2012 Dept :Production Supplier :Microsoft Item_Request : 1.Windows XP Professional 2.Keyboard 3.Mouse 4.LCD Monitor 5.Speaker So, how can I make it with 1 Purchase

Convert SQL Server CTE into Oracle CTE

空扰寡人 提交于 2019-12-12 03:34:15
问题 Here is the SQL Server CTE, trying to convert to Oracle CTE or regular oracle query.. ;with cte as (Select AC, M, Y, D, E, F, CD from tblA WHere (Y = YEAR(GETDATE()) and M = Month(dateadd(month, -1, GETDATE()))) ), cte2 as (Select A.AC,Max(A.Y)as Y, Max(A.M) as M, Max(A.CD) as CD from tbl A Inner join cte B on B.AC = A.AC WHere A.CD is Not Null and B.CD is Null Group by A.AC) , cte3 as (Select C.AC, C.Y, C.M, C.D, C.E, C.F, C.CD from tblA C Inner join cte2 D on C.AC = D.AC and C.Y= D.Y and C

How do I add a not null column and a check constraint in one line in Oracle 11g?

南笙酒味 提交于 2019-12-12 03:31:47
问题 I'm trying to add a new INTEGER column to a table. The column must be NOT NULL, with a default value of 1, and only accept values greater than zero. I'm trying to do this at the moment: ALTER TABLE FOO_AUTHORS ADD PUBLICATION_PERIOD_DAYS INTEGER DEFAULT(1) NOT NULL CONSTRAINT publicationPeriodDays CHECK (PUBLICATION_PERIOD_DAYS>0); Is there a way to do this in one line? I'm following this example, but it's not working because of the NOT NULL. Is the NOT NULL then necessary? I'm getting the

Nhibernate not inserting parentid into child

百般思念 提交于 2019-12-12 03:23:09
问题 I have a weird problem at hand. First have a look at my table schema. A(ID) B(ID,AID) C(ID,AID) D(ID,CID) The map files are as below: MAP A { HasMany(x => x.B).Cascade.AllDeleteOrphan().Inverse().KeyColumn("AID"); HasMany(x => x.C).Cascade.AllDeleteOrphan().Inverse().KeyColumn("AID"); } MAP B { References(x => x.A).Column("AID"); } MAP C { References(x => x.A).Column("AID"); HasMany(x => x.D).Cascade.AllDeleteOrphan().Inverse().KeyColumn("BID"); } MAP D { References(x => x.C).Column("CID"); }

How to fetch Comments from a Oracle 11g using JDBC?

允我心安 提交于 2019-12-12 03:05:14
问题 Is there a way we can fetch comments form Oracle using Java Code?I tried Using Describe but it did not work for JDBC(Java Code). Can u suggest some way? 回答1: You can running this query to get table's comment. select comments from user_tab_comments where table_name = 'T'; If you want to get column's comment: select comments from user_col_comments where table_name = 'T'; 回答2: the java code would be similar what you would be using with any normal query i.e by establishing a connection and then

How to remove duplicate rows in SQL

痞子三分冷 提交于 2019-12-12 02:58:09
问题 I want to remove duplicate rows in the following data. Data: a a a b a c a d a e b a b b b c b d b e c a c b c c c d c e d a d b d c d d d e e a e b e c e d e e The output should be column1 and column2 different. and it should not be the following data. a b a c a d a e b a b c b d b e c a c b c d c e d a d b d c d e e a e b e c e d because a in column 1 and b in column2 is same as b in column1 and a in column2 or else simply i mean to say 1+2 is same as 2+1. So, the output should be a,b a,c a

Graphic of Oracle 11g Database

三世轮回 提交于 2019-12-12 02:57:20
问题 Is there any way, complex or simple, to get a graphical representation for an existing full schema on my DB? I'll try to be more specific: I already have a defined schema on Oracle 11g, with its relationships, foreign and primary keys, sequences and all the stuff you might imagine. The problem is that someone forgot to create a schematic image so the rest of the world could understand what is happening in there.. So if you knew someway, any program, that given a DDL of an Schema gives me a