oracle11g

Error ORA-12638 in Oracle Database 11g

若如初见. 提交于 2019-12-12 22:40:51
问题 I am a big beginner using Oracle Database 11g Express and tried it for the first time today. I only got theorical knowledge on databases (learned SQL but never used it). So, I installed Oracle 11g today (gave them the password for system when needed). I then proceeded to launch 'Start Database' followed by the SQL command line. I entered connect SYSTEM/password but received : ERROR: ORA-12638 : Credential retrieval failed Following advices of various forums, I changed my sqlnet.ora file,

Oracle How to grant CREATE ANY DIRECTORY with the restriction that all directories must be created inside a given directory?

核能气质少年 提交于 2019-12-12 21:36:12
问题 I want to grant the CREATE ANY DIRECTORY permission to a user, with the following restriction: all directories created by this user must be inside of /foo/bar , and any attempt to create a directory outside of this should fail with a permission error. How may I do this on Oracle 11G or 12C? 回答1: That depends, if you want to restrict which OS directories Oracle can access from utl_file commands, you can set the utl_file_dir parameter. Unfortunately, this parameter is system wide, so you won't

Can I use UTILS in Oracle?

耗尽温柔 提交于 2019-12-12 21:26:50
问题 I want to ask if I can use the following in Oracle: UTILS.CONVERT_TO_VARCHAR2 for instance: SELECT insertData, UTILS.CONVERT_TO_VARCHAR2(insertData,10,p_style=>104) insert_short FROM students If it is not possible to use UTILS package, so which alternative I can use? 回答1: Basically, yes. My guess is that you've taken some SQL Server T-SQL and run it through the Oracle SQL Developer Translator ( Tools - Migration - Scratch Editor ) and this is what came out the other side. UTILS is a package

Migrating from IBM MQ to javax.jms.* (Weblogic)

拥有回忆 提交于 2019-12-12 21:15:21
问题 I've been looking for days about how one could migrate from using IBM Websphere MQ to rather only using the QueueManager within Weblogic 10.3.x server. This would save cost of licenses for IBM MQ. The closest I came was finiding an external link which stated that IBM examples existed that did something similar(moving away from MQ to standard jms libraries), but when I attempted to follow the link: http://www.developer.ibm.com/isv/tech/sampmq.html it lead to a dead page :\ More specifically I

Oracle 11g PL/SQL Positions of CONTANT variables in PACKAGE

馋奶兔 提交于 2019-12-12 19:20:39
问题 I have strictly optimization problem. where in my PACKAGE I should place CONSTANT variables when procedure/function is being called many times ? Let's look at this: CREATE OR REPLACE PACKAGE WB_TEST IS PROCEDURE TEST; END WB_TEST; CREATE OR REPLACE PACKAGE BODY WB_TEST IS FUNCTION PARSER(IN_PARAM IN VARCHAR2) RETURN VARCHAR2 IS LC_MSG CONSTANT VARCHAR2(80) := 'Hello USERNAME! How are you today?'; LC_PARAM CONSTANT VARCHAR2(10) := 'USERNAME'; BEGIN RETURN REPLACE(LC_MSG, LC_PARAM, IN_PARAM);

How to Enable XA Oracle 11g

て烟熏妆下的殇ゞ 提交于 2019-12-12 19:17:23
问题 We recently moved to Oracle 11g from MSSQL and am completely new to this. Can someone tell me how to enable XA transactions on Oracle? From what I gathered, I think I need to run initjvm.sql and initxa.sql but I am not entirely sure. Is there someway of doing this through the Enterprise manager? Also, what is the XA driver class called? Is that oracle.jdbc.xa.client.OracleXADatasource? 回答1: Read this official Oracle Article: https://community.oracle.com/thread/920935 And this: http://www

How to schedule a work to run at particular time using dbms_scheduler

南楼画角 提交于 2019-12-12 18:34:38
问题 Im not clear about this, here in DBMS_SCHEDULER we have CREATE_PROGRAM CREATE_JOB CREATE_SCHEDULE etc., after reading the oracle doc still im unclear what to use, On the Oracle side, i am going to use DBMS_SCHEDULER to insert a new message into the queue at the appropriate time, i planned to create scheduler to execute it on particular time and then create program to execute my PL/SQL block which will enqueue the message in the queue Or instead of using CREATE_SCHEDULE and CREATE_PROGRAM,

.NET Oracle managed data access connection pooling not working or slow

大兔子大兔子 提交于 2019-12-12 17:06:41
问题 I recently noticed that when our application does an SQL query to the Oracle database, it always takes at least 200 ms to execute. It doesn't matter how simple or complex the query is, the minimum time is about 200 ms. We're using the Oracle Managed Data Access driver for Oracle 11g. I then created a simple console application to test the connection. I noticed that if I create the connection like in the example below, then every cmd.ExecuteReader method takes the extra 200 ms (opening the

How Can I Maintain a Unique Identifier Amongst Multiple Database Tables?

耗尽温柔 提交于 2019-12-12 16:48:55
问题 I have been tasked with creating history tables for an Oracle 11g database. I have proposed something very much like the record based solution in the first answer of this post What is the best way to keep changes history to database fields? Then my boss suggested that due to the fact that some tables are clustered i.e Some data from table 1 is related to table 2 (think of this as the format the tables were in before they were normalised), he would like there to be a version number which is

ORA-04061: existing state of package body “PACKAGE.NAME” has been invalidated persists

女生的网名这么多〃 提交于 2019-12-12 15:52:00
问题 On one of Oracle DB instances I am working on I am observing a different than normal behavior when recompiling packages. Typically, (as in question Frequent error in Oracle ORA-04068: existing state of packages has been discarded) following error on first call is expected after PL/SQL package recompilation: ERROR at line 1: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body "PACKAGE.NAME" has been invalidated ORA-06508: PL/SQL: could not find