oracle12c

JDBC Realm not working : Login failed: No LoginModules configured for jdbcAuth

百般思念 提交于 2019-12-12 05:12:27
问题 Getting the following error while i try to login : Warning: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: No LoginModules configured for jdbcAuth My Glassfish server version is 4 I am working on jdbc auth realm with oracle 12c as database for user authentication. i have created a jdbc connection pool with name Oracle pool by the following properties : Then connected the resource with the pool by name jdbc/OracleConnection : created the

What is the correct way to implement controlled Primary key depending on column values - product classifications tree

独自空忆成欢 提交于 2019-12-12 04:22:19
问题 I am trying to make Table Product_Classification to Classify Products on three levels columns as below I think it is something called table with it self relation CREATE TABLE Product_Classification ( Classification_ID NUMBER NOT NULL, Classification_Desc VARCHAR2 (1024) NOT NULL, Class1_ID NUMBER, Class1_Desc VARCHAR2 (1024), Class2_ID NUMBER, Class2_Desc VARCHAR2 (1024), Class3_ID NUMBER, Class3_Desc VARCHAR2 (1024), Notes VARCHAR2 (1024), Created_By VARCHAR2 (64) NOT NULL, Created_On DATE

ORA-00904 Invalid Identifier. Query works in 12c but not in 11g

自闭症网瘾萝莉.ら 提交于 2019-12-12 02:14:56
问题 I have a LINQ query, trying to execute it on oracle 11g. The same query executes perfectly fine on 12c but it gives following error on 11g. ORA-00904: "Extent1"."ID": invalid identifier 00904. 00000 - "%s: invalid identifier" *Cause: *Action: Following is the generated SQL. Just showing the specific part of query which is giving error, SELECT "Extent1".ID, ( SELECT "top".ADMIT_DATE FROM ( SELECT "Project7".ADMIT_DATE FROM ( SELECT "Extent7".ADMIT_DATE FROM SYS.Table2 "Extent7" WHERE "Extent1"

ORA-02287: sequence number not allowed here

爱⌒轻易说出口 提交于 2019-12-12 01:45:43
问题 I trying to insert data from one table to other table and using a sequence while but I'm getting the sequence not allowed here error on Oracle 12c. INSERT INTO table_a (a,b,c,d) SELECT schema.table_a_seq.nextval, t.col1, t.col2, t.col3 FROM ( SELECT col1, col2, col3 FROM table_b )t; 回答1: I couldn't reproduce the error, However I have changed your query to- INSERT INTO table_a SELECT table_a_seq.nextval, t.* FROM (SELECT col1 FROM table_b) t; And its working fine for me. You might have missed

OraOps crash w3wp.exe Process

夙愿已清 提交于 2019-12-12 00:25:10
问题 We are upgrading from Oracle 11g to 12c. On a new VM machine in Microsoft Azure. On a specific call on our Website C#, visually nothing seems to happen, but we are expecting a PDF to be generate. We got no error on the screen, but all our sessions variables are lost. So I suspected a IIS Pool Crash that restart itself. In the EventViewer we have 4 entries: Fault bucket , type 0 Event Name: APPCRASH Response: Not available Cab Id: 0 Problem signature: P1: w3wp.exe P2: 8.5.9600.16384 P3:

Oracle 12c - sql to find out of order rows

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 16:13:23
问题 I have a table with following columns: FILE_NAME VARCHAR2(30); STATUS VARCHAR2(2); DEPT_ID NUMBER; DEPT_SUB_ID NUMBER; CREATE_DATE DATE; sample data: FILE_NAME STATUS DEPT_ID DEPT_SUB_ID CREATE_DATE --------- ------- -------- ----------- ---------- TEST_20180806222127 C 1 10 07-AUG-18 01.04.47.821795000 AM TEST_20180806221940 C 1 10 07-AUG-18 04.12.20.957400000 AM TEST_20180806221733 C 1 10 07-AUG-18 03.35.27.809494000 AM TEST_20180805202020 C 1 20 06-AUG-18 02.24.47.821795000 AM TEST

How to connect from php to Oracle DB 12c?

≯℡__Kan透↙ 提交于 2019-12-11 15:46:12
问题 I am using XAMPP v3.2.2 and I am trying to connect from PHP to Oracle database 12c. I have already commented out the extension php_oci8_12c.dll in php.ini, restarted Apache, and installed Oracle instantclient_12_2 32bit. However, I am getting this error: Fatal error: Uncaught Error: Call to undefined function oci_connect() 回答1: Follow instructions for XAMPP v3.2.2 and Oracle database 12c config. Download instantclient_12_2 and unzip to c:\instantclient_12_2 (make sure your xamp and

Liquibase Unsupported major.minor version 51.0

不想你离开。 提交于 2019-12-11 15:02:38
问题 I am attempting to set up Liquibase 3.6.1 on a solaris VM. My JRE is 1.6.0_151-b10. My Liquibase.properties file is configured as follows: driver:oracle.jdbc.OracleDriver classpath:/export/home/oracle/Liquibase/lib/OJDBC-Full/ojdbc6.jar url:jdbc:oracle:thin:@db:port/instance username:uname password:pword When calling "./Liquibase --version" (for example), I get an error. Exception in thread "main" java.lang.UnsupportedClassVersionError: Liquibase/integration/commandline/Main : Unsupported

How to uninstall deprecated Oracle Data Provider?

北战南征 提交于 2019-12-11 14:38:40
问题 I am trying to install Oracle Developer Tools for Visual Studio 2015 so that I can connect to a remote 11g database from SSRS/Visual Studio Projects in general, from my dev machine. When I go to the downloads page, I see this: So I went to Visual Studio to determine whether I already had ODT, and found this: However, I don't think I installed this ODP, and it just came with the Visual Studio installation. Is there a way to uninstall this provider, or am I OK to just install the new ODT over

SQL (Oracle 12c): How to select results from another select statement (nesting?/sub--query?)

眉间皱痕 提交于 2019-12-11 14:20:12
问题 I'm working on a homework problem for an intro SQL class that I'm taking. This week's topic is Summary Functions. Here is the problem: Determine the average retail price of books by publisher name and category. Include only the categories Children and Computer and the groups with an average retail price greater than $50. Here bellow are the pictures of the relevant tables: I've written this query which returns the average retail price by publisher name and category, but cannot figure out how