To retrieve ORACLE_HOME

hello all,
How to retrieve the ORACLE_HOME location irrespective of the Version installed ?
advise..

Hi,
Eric give you a good solution ... About API's maybe you should post your question on these forums below:
Oracle Call Interface
Oracle Call Interface (OCI)
Oracle C++ Call Interface (OCCI)
C++ Call Interface (OCCI)
Cheers

Similar Messages

  • Doubt on opatch utility

    I applied a patch which converted
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    to
    Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
    Now how I am using opatch lsinventory to list the patch applied
    i get nothing in the log file generated
    The log file look like this
    reating log file "F:\oracle\ora92\.patch_storage\LsInventory__11-02-2006_11-38-41.log"
    Accessing inventory ... (retry 10 times, delay 30 seconds each time)
    Invoking command """C:\Program Files\Oracle\jre\1.3.1\bin\java.exe" -classpath "C:\Program Files\Oracle\oui\lib\OraInstaller.jar;C:\Program Files\Oracle\oui\lib\srvm.jar;F:\oracle\ora92\OPatch\jlib\opatch.jar;;F:\oracle\ora92\jlib\share.jar " -Doracle.installer.invPtrLoc=N/A -Dopatch.retry=10 -Dopatch.delay=30 opatch/LsInventory "C:\Program Files\Oracle\oui" "f:\oracle\ora92" opatch.pl 1.0.0.0.55 FALSE""
    Result:
    OPatch succeeded.
    Could some one plz tell me how to use opatch utility

    Sir,
    This what i get
    C:\>perl F:\oracle\ora92\OPatch\opatch.pl -r lsinventory -all
    Oracle Interim Patch Installer version 1.0.0.0.55
    Copyright (c) 2006 Oracle Corporation. All Rights Reserved..
    We recommend you refer to the OPatch documentation under
    OPatch/docs for usage reference. We also recommend using
    the latest OPatch version. For the latest OPatch version
    and other support related issues, please refer to document
    293369.1 which is viewable from metalink.oracle.com
    Oracle Home = F:\oracle\ora92
    Location of Oracle Universal Installer components = C:\Program Files\Oracl
    Location of OraInstaller.jar = "C:\Program Files\Oracle\oui\lib"
    Oracle Universal Installer shared library = C:\Program Files\Oracle\oui\bi
    2\oraInstaller.dll
    Location of Oracle Inventory Pointer = N/A
    Location of Oracle Inventory = C:\Program Files\oracle\inventory
    Path to Java = "C:\Program Files\Oracle\jre\1.3.1\bin\java.exe"
    Log file = F:\oracle\ora92/.patch_storage/<patch ID>/*.log
    Creating log file "F:\oracle\ora92\.patch_storage\LsInventory__11-03-2006_
    11.log"
    OPatch succeeded.
    C:\>
    and log look like
    Creating log file "F:\oracle\ora92\.patch_storage\LsInventory__11-03-2006_15-40-11.log"
    Accessing inventory ... (retry 10 times, delay 30 seconds each time)
    ""C:\Program Files\Oracle\jre\1.3.1\bin\java.exe" -classpath "C:\Program Files\Oracle\oui\lib\OraInstaller.jar;C:\Program Files\Oracle\oui\lib\srvm.jar;F:\oracle\ora92\OPatch\jlib\opatch.jar;;F:\oracle\ora92\jlib\share.jar" -Doracle.installer.invPtrLoc=N/A -Dopatch.retry=10 -Dopatch.delay=30 opatch/LsHome "C:\Program Files\Oracle\oui" "f:\oracle\ora92" opatch.pl 1.0.0.0.55 FALSE"
    Retrieving $ORACLE_HOME details
    Invoking command """C:\Program Files\Oracle\jre\1.3.1\bin\java.exe" -classpath "C:\Program Files\Oracle\oui\lib\OraInstaller.jar;C:\Program Files\Oracle\oui\lib\srvm.jar;F:\oracle\ora92\OPatch\jlib\opatch.jar;;F:\oracle\ora92\jlib\share.jar" -Doracle.installer.invPtrLoc=N/A -Dopatch.retry=10 -Dopatch.delay=30 opatch/LsHome "C:\Program Files\Oracle\oui" "f:\oracle\ora92" opatch.pl 1.0.0.0.55 FALSE""
    OPatch succeeded.

  • Retrieve alert values for use as parameter in corrective action sql script

    I am trying to write a corrective action sql script to kill a session that is blocking other sessions. I have the "blocking session count" metric set and the alert is firing correctly.
    Is there any way to retrieve the sid and serial number from the alert generated and use it in a corrective action sql script?
    Here is the alert generated:
    Target Name=myproddb.world
    Target Type=Database Instance
    Host=myprodserver
    Metric=Blocking Session Count
    Blocking Session ID=SID: 522 Serial#: 5228
    Timestamp=Mar 4, 2008 5:57:12 PM EST
    Severity=Warning
    Message=Session 522 is blocking 1 other sessions
    Notification Rule Name=Testing Corrective actions
    Notification Rule Owner=sysman
    Clearly the sid, and serial # is contained within the alert Message field
    what I want to write for the sql script is :
    alter system kill session '%sid%,%serial_no%' immediate;
    and have GC pass in the sid and serial_no to the script.
    The "Target Properties" listed on the right of the Edit Corrective Action screen lists minimal details pertaining to the alert and certainly not the session sid, serial no.
    Generically, is there any way to retrieve the values from an alert and use them in a corrective action script or job?
    I've looked into getting the values from the mgmt$alert_history table, but I'm hoping that GC can pass the values to the sql script.
    thanks in advance for your help.

    Hi
    You can implementing a procedure like this.
    1. When a block session count alarms occurs, there is a column in the v$lock that you can examine.
    #!/bin/ksh
    #kill_block_session.sh
    #first export your variables
    export ORACLE_HOME=/oracle/product/10.2.0.3
    export ORACLE_SID=SIDNAME
    $ORACLE_HOME/bin/sqlplus "/ as sysdba" << EOF
    execute immediate killed_blocks;
    EOF
    # end
    The killed_blocks is a procedure:
    create procedure
    declare
    v_sid varchar2(15);
    v_serial varchar2(15);
    -- now a sql query that retrieve the sid and serial
    -- you can obtain these values from v$session and v$lock
    select vs.sid,vs.serial into v_sid,v_serial
    from v$session vs,v$lock vl
    where vs.sid=vl.sid
    and vl.block >0
    -- After this, you execute a dbms_put line with these
    -- values
    But you understant that this response action is very dangerous, because its possible that you kill sessions that the blocking are transitient.
    You must examine your enviroment and your application and establish the metric like UDM and not for only session blocking count.
    You must to see:
    - The type of block
    - The ctime time in the v$lock for to understatn the amount of time to determine that the block is need killed.
    - In my opinion you need a special UDM and deactivate the blocking sesion count
    If you want help to create this UDM send me a mail to [email protected]
    Regards
    Robert

  • Error while trying to retrieve text for error ORA-12705

    I am getting the message "Error while trying to retrieve text for error ORA-12705" when trying to connect to a remote oracle database on the network.
    I can access this database using:
    sqlplus username/password@database
    from a dos prompt.
    For some reason I can't connect when using PHP (through my local Apache2 server on Windows XP).
    'phpinfo' says oracle in enabled (installed as per: http://www.oracle.com/technology/pub/notes/technote_php_instant.html), so I'm pretty sure the problem isn't with php itself.
    My guess is it's something with Apache, and maybe environment variables or user permissions or instantclient (10).
    All the folders, from instantclient to the Apache server have full permissions set for "Everyone" which I would assume includes this mysterious "nobody" user I've read about.
    As for instantclient, I have placed that "tnsnames.ora" file from the oracle server there, and that hasn't changed much.
    I've tried setting, unsetting, editing (environment variables):
    LD_LIBRARY_PATH
    ORACLE_HOME
    ORACLE_SID
    TNS_ADMIN
    NLS_LANG
    ORA_NLS33
    in both the system environment, and even with PHP's "putenv" function. (Note: and restarting each time I changed a system var.)
    In PHP i'm using:
    $c = oci_connect("username","pasword", "database")
    I've tried OCILogon instead of oci_connect
    For "database" I've tried:
    - using the path to the oracle db: //Oracle1/e/oracle/ora81
    - mapping the path to x: drive and using: x:/oracle/ora81
    - using the name of the database by itself
    - using the name of the database underscored with the database name
    - using "(ADDRESS=(PROTOCOL=TCP)(HOST = host)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=database)))"
    I have tried everything I can find from:
    the Oracle installation page: http://www.oracle.com/technology/pub/notes/technote_php_instant.html
    the Oracle troubleshooting page: http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#connect
    and these forumswith no results, just the same error.
    I have also spent about 16 hours Googling for help, and nothing.
    Can someone please tell me, what exactly does a user using:
    Windows XP
    Apache 2
    PHP
    intantclient10
    Oracle 8i (on a remote server)
    need to do to connect to Oracle before jumping off a bridge?

    Turns out Oracle was previously installed on this company laptop :(
    I deleted any 'Oracle' mention in the registry with 'regedit' (from the command line) using the Find option. Not sure if it's always a good idea to do that, but I backed up the important stuff first anyway.
    I uninstalled and reinstalled everything using the same guide mentioned above, and then it worked.
    Now I can be friends with Oracle again.
    Would be nice if the "Deinstall" removed the registry entries that caused this issue...

  • An error occurred during olap API metadata retrieval. This is probably caus

    this is what i have done so far. i really nead some help asap!!!
    1. Install Oracle 9i Release 2 (9.2.0.1) Enterprise Edition with the General purpose database configuration (Data warehouse works as well). At the end of the installation I chose the password management button to change passwords for the few necessary accounts: SYS, SYSTEM, OLAPSYS, SH.
    2. Download the p3948480_9206_WINNT.zip from metalink, the 9.2.0.6 patchset
    3. Shut down any existing Oracle9i database instances with normal or immediate priority. Stop all listener and other services running in the Oracle home directory where you want to install the patch set.
    4. unzip the content of thepatch to a temp directory
    5. start setup.exe under the temp directory (it will start the Oracle Universal installer 10.1.0.3)
    6. install the patchset to your Oracle home, selecting the source in the temp_dir\stage\products.jar file
    7. review carefully the post-installation tasks for the patchset:
    Review the following sections before upgrading a database (quote from the patchset html readme):
    8.2.1.1If JServer is part of the installation ensure that there is at least 10 MB of free space allocated to the SYSTEM tablespace.
    8.2.1.2 Check XDB Tablespace Size
    For RAC installations, ensure that there is at least 50 MB of free space allocated to the XDB tablespace.
    8.2.1.3 Set the SHARED_POOL_SIZE and JAVA_POOL_SIZE Initialization Parameters
    Set the value of the SHARED_POOL_SIZE and the JAVA_POOL_SIZE initialization parameters as follows:
    Start the database:
    SQL> STARTUP
    If necessary, enter the following command to determine whether the system uses an initialization parameter file (initsid.ora) or a server parameter file (spfiledbname.ora):
    SQL> SHOW PARAMETER PFILE;
    This command displays the name and location of the server parameter file or the initialization parameter file.
    Determine the current values of these parameters:
    SQL> SHOW PARAMETER SHARED_POOL_SIZE
    SQL> SHOW PARAMETER JAVA_POOL_SIZE
    If the system is using a server parameter file:
    If necessary, set the value of the SHARED_POOL_SIZE initialization parameter to at least 150 MB:
    SQL> ALTER SYSTEM SET SHARED_POOL_SIZE='150M' SCOPE=spfile;
    If necessary, set the value of the JAVA_POOL_SIZE initialization parameter to at least 150 MB:
    SQL> ALTER SYSTEM SET JAVA_POOL_SIZE='150M' SCOPE=spfile;
    If the system uses an initialization parameter file, if necessary, change the values of the SHARED_POOL_SIZE and the JAVA_POOL_SIZE initialization parameters to at least 150 MB in the initialization parameter file (initsid.ora).
    Shut down the database:
    SQL> SHUTDOWN
    8.2.2 Upgrade the Database
    After you install the patch set, you must complete the following steps on every database associated with the upgraded Oracle home:
    Log on as a member of the Administrators group to the computer where the Oracle components are installed.
    Use SQL*Plus to login to the database as the SYS user with SYSDBA privileges:
    sqlplus /NOLOG
    CONNECT SYS/password AS SYSDBA
    Enter the following SQL*Plus commands:
    SQL> STARTUP MIGRATE
    SQL> SPOOL patch.log
    SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\catpatch.sql
    SQL> SPOOL OFF
    Restart the database:
    SQL> SHUTDOWN
    SQL> STARTUP
    Run the utlrp.sql script to recompile all invalid PL/SQL packages now instead of when the packages are accessed for the first time. This step is optional but recommended.
    SQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\utlrp.sql
    12. Install JDeveloper 9.0.4 (download it from OTN and just unzip it in a directory ... it doesn't require an oracle home)
    13. Install BI Beans 9.0.4 (download it from OTN as well), run the setup.exe that comes with it and in the destination oracle home select the directory where you installed JDeveloper and give an oracle home name to it)
    14. Install the BIBDEMO schema:
    Create a directory on the computer that is running the Oracle9i database. This install_home directory is the location to which you will upload the data files that are required to build the BIBDEMO schema.
    On the computer where BI Beans is installed, locate the bibeans_home\bibdemo_schema folder (where bibeans_home is the root folder of your BI Beans installation). Copy all of the files found in this folder to the install_home folder on your server machine.
    Open a DOS prompt and navigate to the install_home folder.
    Run bibdemo.bat to install the schema, using the following syntax:
    bibdemo.bat <path to Oracle database files >
    For example, for an instance named my9iService, enter the following:
    bibdemo.bat D:\OraHome1\oradata\my9iService
    You are prompted for the password for the sys as sysdba user.
    The script takes approximately 15 minutes to run, depending on the machine specifications. It is normal to see some error messages while the script is running. In addition, when materialized views are being created in the database, the script will appear to stop; this is also normal. A clear message will tell you when the script has completed.
    The log files (*.log) that are generated by the installation script are stored in the folder from which you ran the script.
    Here's what
    bi_checkconfig.bat -h ana -po 1521 -sid proiect -u bibdemo -p bibdemo -q
    returned:
    BI Beans Diagnostics(v1.0.2.0) 2/28/05
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = E:\OraDS
    JAVA_HOME ................................. = E:\OraDS\jdk
    JDeveloper version ........................ = 9.0.4.1.1.1436
    BI Beans release description .............. = BI Beans 9.0.4 Production Release
    BI Beans component number ................. = 9.0.4.23.0
    BI Beans internal version ................. = 2.7.5.32
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 9.2.0.4.0
    JDBC JAR file location .................... = E:\OraDS\jdev\lib\patches
    Database version .......................... = 9.2.0.6.0
    OLAP Catalog version ...................... = 9.2.0.1.0
    OLAP AW Engine version .................... = 9.2.0.1.0
    OLAP API Server version ................... = 9.2.0.1.0
    BI Beans Catalog version .................. = N/A; not installed in bibdemo
    OLAP API JAR file version ................. = 9.2
    OLAP API JAR file location ................ = E:\OraDS\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    Number of metadata folders ................ = 2
    Number of metadata measures ............... = 12
    Number of metadata dimensions ............. = 8
    Testing sample query for measures and dimensions
    (S=Schema, C=Cube, M=Measure, D=Dimension)
    1/21) Measure Budget ................... = Successful
    S=BIBDEMO, C=BIBDEMO_BUDGET_CUBE, M=BUDGET
    2/21) Measure Actual ................... = Successful
    S=BIBDEMO, C=BIBDEMO_ACTUAL_CUBE, M=ACTUAL
    3/21) Measure Close Price .............. = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_CLOSE
    4/21) Measure Open Price ............... = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_OPEN
    5/21) Measure Low Price ................ = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_LOW
    6/21) Measure High Price ............... = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_HIGH
    7/21) Measure Stock Volume ............. = Successful
    S=BIBDEMO, C=BIBDEMO_STKPRICE_CUBE, M=STKPRICE_VOLUME
    8/21) Dimension Division ............... = Successful
    S=BIBDEMO, D=DIVISION
    9/21) Dimension Line Items ............. = Successful
    S=BIBDEMO, D=LINE
    10/21) Dimension Time ................... = Successful
    S=BIBDEMO, D=TIME
    11/21) Dimension Day .................... = Successful
    S=BIBDEMO, D=DAY
    12/21) Dimension Stock .................. = Successful
    S=BIBDEMO, D=STOCK
    13/21) Measure Costs .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.COSTS
    14/21) Measure Promotion ................ = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.PROMO
    15/21) Measure Quota .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.QUOTA
    16/21) Measure Units .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.UNITS
    17/21) Measure Sales .................... = Successful
    S=BIBDEMO, C=ANALYTIC_CUBE, M=F.SALES
    18/21) Dimension Channel ................ = Successful
    S=BIBDEMO, D=CHANNEL
    19/21) Dimension Geography .............. = Successful
    S=BIBDEMO, D=GEOGRAPHY
    20/21) Dimension Product ................ = Successful
    S=BIBDEMO, D=PRODUCT
    21/21) Dimension Time ................... = Successful
    S=BIBDEMO, D=TIME
    Metadata output location .................. = E:\OraDS\bibeans\bi_checkconfig\bi
    _metadata.txt
    To interpret this output, see the "Displaying Information about your Oracle9i Bu
    siness Intelligence Beans Client Configuration" technical note, whose file name
    is bi_checkconfig_tn.html
    These diagnostics are captured in: E:\OraDS\bibeans\bi_checkconfig\bi_checkconfi
    g.xml
    now: i have created some new stuff:
    1). user ana with roles:
    -dba
    -olap_dba
    -connect
    -resource
    (same roles as bibdemo)
    2).schema ana; tablespace ana (permanent), tablespace anatemp (temporary)
    3).i have created some relational tables and i have inserted some data in them:
    agent, aparat (cofee machines), beneficiar (clients), locatii (city), raport (REPORT), timp (time), tipaparat (types of cofee machines), tipbautura (products : types of cofee made by all the cofee machines), zone (state)
    4). one fact table with:
    - sold cantity (measure)
    - id_bautura (id_product) primary key
    - id_timp(id_time) primary key
    - id_beneficiar (id_client) primary key
    - id_agent primary key
    - id_locatie (id_city) primary key
    - id_aparat (id_cofee_machine)primary key
    i have inserted some data also
    5).dimensions:
    AGENT_DIM :levels: codag(id_agent), numeag (agent name), telefag (agent phone number)from relational table agent
    BENEFICIAR_DIM :levels: codben (id_client), denumire (client name), adresa (adress) ,codl (id_city) etc from relatinal table beneficiar (clients)
    TIMP_DIM :levels: id, year, month from relational table timp (time)
    TIPBAUTURA_DIM :levels: codbautura (id_product), numebautura (product name)from relational table tipbautura (products)
    ZONA_DIM :levels: codzona (id state), numezona (state name), codoras (id city), numeoras (city name) with ierarhy id_state---id_city FROM 2 RELATINAL TABLES CITY AND STATE!!!!!!!! AM I ALOUD TO DO THAT?????
    DO I NEED TO CREATE A DIMENSION FROM ONLY ONE TABLE???????
    APARAT_DIM :LEVELS: codben (id client), codtip (id machine type), denumireap (machine type name), matricolap ((machine id) (FROM 2 RELATIONAL TABLES ALSO!!!!!!! FROM TYPES OF COFEE MACHINES AND COFEE MACHINES!!!!!
    6). I HAVE NOW CREATED THE CUBE FROM THE FACT TABLE AND WITH ALL THE DIMENSIONS
    7). summary advisor wizard NOT WORKING! IT NEVER STOPS!
    8). I HAVE CREATED ALSO ONE materialized view FOR THE CUBE
    IF I COMPILE IT... NO ERRORS
    9). CUBE VIEWER NOT WORKING!!!!!!! IT ONLY APEARS A BELL!!!
    NOW IF I RUN BI_CHECK CONFIG ON ANA AND ALSO ON BIBDEMO!!!!!!!!!!!!
    IT SAYS:
    1) An error occurred during olap API metadata retrieval. This is probably caused by inconsistent metadata.
    ============================================================================
    oracle.express.ExpressServerExceptionError class: Unknown Error
    Server error descriptions:
    INI: System failure, Generic at TxsOqConnection::getDefaultDatabase
    at oracle.express.olapi.data.full.ExpressDataProvider.getMetadataProviderInterface(ExpressDataProvider.java:1003)
    at oracle.olapi.metadata.MetadataFetcher.initialize(MetadataFetcher.java:73)
    at oracle.olapi.metadata.MetadataFetcher.<init>(MetadataFetcher.java:45)
    at oracle.olapi.metadata.BaseMetadataProvider.<init>(BaseMetadataProvider.java:47)
    at oracle.olapi.metadata.mdm.MdmMetadataProvider.<init>(MdmMetadataProvider.java:130)
    at oracle.express.olapi.data.full.ExpressDataProvider.getDefaultMetadataProvider(ExpressDataProvider.java:964)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverImpl_92.getMdmMetadataProvider(MDMMetadataDriverImpl_92.java:1133)
    at oracle.dss.metadataManager.server.drivers.mdm._92.MDMMetadataDriverImpl_92.attach(MDMMetadataDriverImpl_92.java:810)
    at oracle.dss.metadataManager.server.drivers.mdm.MDMMetadataDriverImpl.attach(MDMMetadataDriverImpl.java:125)
    at oracle.dss.metadataManager.server.MetadataManagerImpl.buildObjectModel(MetadataManagerImpl.java:1092)
    at oracle.dss.metadataManager.server.MetadataManagerImpl.attach(MetadataManagerImpl.java:969)
    at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:876)
    at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:799)
    at BICheckConfig.checkConnection(BICheckConfig.java:277)
    at BICheckConfig.main(BICheckConfig.java:1348)
    I TRYED ALSO WITH USER ANA WITH ROLES:
    - DBA
    - CONNECT
    -RESOURCE
    - OLAP_USER
    NOT WORKING! AND ALSO BIBDEMO NOT WORKING!
    WHAT AM I MISSING? SHOULD I USE AW MANAGER? OR DO I NEED TO CREATE AN AMNALITIC WORKSPACE???
    WHAT ARE THE STEPS TO CREATE A GOOD METADATA????

    Hi,
    The issue here is if the whole catalog is corrupt or just one schema. So to try and determine the status of the catalog I would try:
    1) Using OEM remove all the objects you created
    2) I presume you created your database using the Database Configuration Assistant? You should have used the warehouse template
    3) Make sure the following accounts are unlocked and also not expired : SH, OLAPSYS
    4) Make sure the password for the SH schema is SH
    5) Make sure the password for the OLAPSYS account is manager
    6) Install the BIBDEMO schema that is shipped with BI Beans. This in the jdev_home/bibeans/bibdemo_schema
    The installation process will remove SH schema from the OLAP catalog.
    7)Once this is installed use JDeveloper to see if you can create a crosstab or graph.
    8) If the BIBDEMO schema works try creating your new schemas one at a time.
    9) Make sure the if you define the a dimension as type time it has END_DATE (column type DATE) and TIME_SPAN (column type number) defined. Otherwise don't define the dimension as type time.
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545

    Hi,
    I am getting the following error when i tried to connect to Oracle database from
    a servlet. This exception is coming at the time of getting connection. And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can any one help me out.
    Durga

    The problem is solved after exprting the parameter ORACLE_SID=<database_name>
    in Weblogic startup script.
    thank u for the suggestions.
    Durga
    Joseph Weinstein <[email protected]> wrote:
    >
    >
    Durga wrote:
    Hi Joe,
    I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
    /oracle/app/product/8.1.7
    Now i am getting different exception. But still the standalone codeis working.
    any clues why I am getting this exception. I will send the code andthe weblogic
    properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
    uses to find
    Oracle libraries, and our driver libraries etc., is in the same order
    for the
    server as for the shell that is successful on it's own. Make sure your
    Oracle
    client stuff is ahead of any weblogic libraries.
    Joe
    java.sql.SQLException: ORA-12547: TNS:lost contact
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
    C
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
    C
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
    mpl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1631)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
    Co
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
    Joseph Weinstein <[email protected]> wrote:
    The environment for the server probably doesn't have the same ORACLE_HOME
    setting as your shell when you succeed in a standalone.
    Also, you should be using our connection pools, and you should avoid
    making DriverManager calls in any multithreaded app such as WebLogic.
    Joe
    Durga wrote:
    Hi,
    I am getting the following error when i tried to connect to Oracledatabase from
    a servlet. This exception is coming at the time of getting connection.And the
    same code is working when i used in the standalone java program.
    Oracle 8i database and WLS 6.0 are on the same UNIX machine.
    ---------attempting to connect ------
    java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
    Compiled
    Code)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
    ode)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
    Code)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
    piled Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
    ode)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
    e)
    at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
    e)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java, Compiled Code)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java, Compiled Code)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java, Compiled Code)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
    de)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Can any one help me out.
    Durga

  • Upgrade to 11g - DBUA can't retrieve the version

    Hello,
    I'm upgrading 10.2.0.4 version to 11.2.0.2 and I have problem at the beginning.
    Immediately after the start of DBUA in the I get the error, that the version of the database can' be retrieved. Somewhere in the logs I have found:
    connect /****** as SYSDBA
    set echo off;
    @/u01/app/oracle/OracleHomes/db11g/rdbms/admin/rdbmsup.sql;
    exactly at this point I have big understanding problem.
    It looks like the new software wants to connect to the instance and can't. What should I do to allow it to do that? I have started the new(11g) listener and it it possible to connect to the old 10g instance, but the old instance runs in the old home. I can connect to it, but I must use the tnsname "emrep". Without using the tnsname it connects to the idle instance.
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> conn sys@emrep as sysdba
    Enter password:
    Connected.
    Probably I have made some mistake during configuration of the listener, but I can't find any guidance in this direction. At all places where I'm looking I see only: "create new listener using netca and add the database in the Database Services tab for this listener using netmgr". Actually there is no need to do the last because tha databse is using the default port 1521.
    If I do only that, the I get in $ORACLE_HOME/networt/admin folder only listener.ora with the following contents:
    # listener.ora Network Configuration File: /u01/app/oracle/OracleHomes/db11g/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = mmredora.aegon-net.de)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    After that I see the databse registered with the listener:
    [oracle@mmredora-SID:emrep]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-SEP-2011 15:38:23
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mmredora.aegon-net.de)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 27-SEP-2011 15:34:19
    Uptime 0 days 0 hr. 4 min. 3 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/OracleHomes/db11g/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/mmredora/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mmredora.aegon-net.de)(PORT=1521)))
    Services Summary...
    Service "emrep" has 1 instance(s).
    Instance "emrep", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Can somebody help me with that?

    "could not get the database version from the "Oracle Server" component. The "CEP" file "/u01/app/oracle/OracleHomes/db11g/rdbms/admin/rdbmsup.sql" does not provide the version directive."
    but I have found some other problem.
    in rdbmsup.sql I found:
    SELECT version INTO inst_version FROM v$instance;
    vers := SUBSTR(inst_version,1,6); -- three digits
    ptch_version := SUBSTR(inst_version,1,8); -- four digits (patch release)
    IF (vers = '9.2.0' AND
    SUBSTR(ptch_version,1,8) = '9.2.0.8') OR
    (vers = '10.1.0' AND
    SUBSTR(ptch_version,1,8) = '10.1.0.5') OR
    (vers = '10.2.0' AND
    SUBSTR(ptch_version,1,8) != '10.2.0.1') OR
    (vers IN ('11.1.0','11.2.0')) THEN
    NULL; -- is a supported version
    ELSE
    -- version is some unsupported version
    DBMS_OUTPUT.PUT_LINE('ODMA_DIRECTIVE:EXIT:NOT_INSTALLED:');
    RETURN;
    END IF;
    I have executed
    SELECT version INTO inst_version FROM v$instance;
    from sqlplus connecting to the old instance using a "tnsname" and get version 10.1.0.4, not "10.2.0.4" as it is in my papers. now I'm making upgrade to 10.1.0.5
    But it still bothers me: this "connect /****** as SYSDBA"! The text of the message sounds like "not possible to retrieve the version at all" - not that it is an unsupported version.

  • Error while trying to retrieve text for error ORA-12162

    I'm accessing the VM through Putty. My DB and GGate both reside on the same machine.
    I'm trying to connect to DB using GG but It seems to be throwing some Issue. I tried to search for solution over net but couldnt get it fixed. I have set My ORACLE_HOME to the installed dir of Oracle 11g and ORACLE_SID to the one mentioned in my tns. But still no luck. Can some1 guide me.
    It says check privileges, but when I try
    GGSCI (XXXXXX) 1> dblogin userid sys as sysdba
    Password:
    ERROR: Did not recognize parameter argument.
    Don't work this way, not the other way mentioned below
    GGSCI (XXXXXX) 2> dblogin userid sys
    Password:
    ERROR: Unable to connect to database using user sys. Please check privileges.
    Error while trying to retrieve text for error ORA-12162.
    I can do a normal Login using SQLPLUS but Not through GGate :(
    Please guide me

    Lother wrote:
    I'm accessing the VM through Putty. My DB and GGate both reside on the same machine.
    I'm trying to connect to DB using GG but It seems to be throwing some Issue. I tried to search for solution over net but couldnt get it fixed. I have set My ORACLE_HOME to the installed dir of Oracle 11g and ORACLE_SID to the one mentioned in my tns. But still no luck. Can some1 guide me.
    It says check privileges, but when I try
    GGSCI (XXXXXX) 1> dblogin userid sys as sysdba
    Password:
    ERROR: Did not recognize parameter argument.
    Don't work this way, not the other way mentioned below
    GGSCI (XXXXXX) 2> dblogin userid sys
    Password:
    ERROR: Unable to connect to database using user sys. Please check privileges.
    Error while trying to retrieve text for error ORA-12162.
    I can do a normal Login using SQLPLUS but Not through GGate :(
    Please guide mei wouldnt use SYS in the first place and rather create a new user to work with GG, but try this one:
    dblogin userid sys, password <password> sysdba

  • Error while trying to retrieve text for error ORA-24327

    Hi,
    I'm using Weblogic OCI driver to connect to Oracle 9.2.0.3 DB. WLS version
    is 7.0 SP3. I'm encountering an error when I try to start the WLS " Error while
    trying to retrieve text for error ORA-24327".
    I've set the LD_LIBRARY_PATH to $ORACLE_HOME/lib32:$ORACLE_HOME/lib in addition
    to $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
    Thanks in advance.
    Cheers,
    Kanda.V

    Hi Mitesh,
    Thanks for your suggestion. Looks like ORACLE_HOME and ORACLE_BASE need to
    set in the $CLASSPATH variable. It's working now. Thanks once again.
    Cheers,
    Kanda.
    Mitesh Patel <[email protected]> wrote:
    Hi Kanda!
    Also, use lib32 directory instead of $ORACLE_HOME/lib32:$ORACLE_HOME/lib
    in
    your environment for 920 jDdriver.
    Then try java utils.dbping oracle user passwd databasename to see if
    it is
    successful meaning your environment is set for weblogic 920 jDriver.
    Also,
    make sure you have entry in your tnsnames.ora file for the database.
    Thanks,
    Mitesh
    Kanda wrote:
    Actually I've set it to oci920_8 which is correct isn't ?
    Please advise.
    Thanks.
    Kanda.V
    Mitesh Patel <[email protected]> wrote:
    $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
    This should be oci920_8.
    thanks,
    Mitesh
    Kanda wrote:
    Hi,
    I'm using Weblogic OCI driver to connect to Oracle 9.2.0.3 DB.
    WLS
    version
    is 7.0 SP3. I'm encountering an error when I try to start the WLS
    Error while
    trying to retrieve text for error ORA-24327".
    I've set the LD_LIBRARY_PATH to $ORACLE_HOME/lib32:$ORACLE_HOME/libin addition
    to $WL_HOME/lib/solaris/oci_920_8 as I read in other newsgroup.
    Thanks in advance.
    Cheers,
    Kanda.V

  • ORA-28545: error diagnosed by Net8 when connecting to an agent Unable to retrieve text of NETWORK/NCR message 65535

    Hello All,
    I have verified entire otn community, but none of the solution working for me and hence posting this problem. I'm getting below error message when I try to connect from oracle 11g to sqlserver database. All details are given below and request some body to provide resolution.
    Oracle 11 g server installed in "Red Hat Enterprise Linux Server release 6.3"
    Sqlserver running in Windows server enterprise 64bit OS.
    $ cat initdg4msql.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[SJCGNMWQA2WEB01]:SQLEXPRESS//msdb
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    $ cat listener.ora
    # listener.ora Network Configuration File: /home/oracle/11g/product/11/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
         (SID_NAME = dg4msql)
         (ORACLE_HOME = /home/oracle/11g/product/11)
         (PROGRAM = dg4msql)
    $ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /home/oracle/11g/product/11/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    GNMDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = GNMDB)
    dg4msql  =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
        (CONNECT_DATA = (SID = msdb))
        (HS = OK)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = sjcgnm62v2db1.skta.com)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER = /home/oracle/11g
    Output of lsnrctl start
    $ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 22-NOV-2013 15:17:08
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Starting /home/oracle/11g/product/11/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    System parameter file is /home/oracle/11g/product/11/network/admin/listener.ora
    Log messages written to /home/oracle/11g/diag/tnslsnr/sjcgnm62v2db1/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date                22-NOV-2013 15:17:08
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/11g/product/11/network/admin/listener.ora
    Listener Log File         /home/oracle/11g/diag/tnslsnr/sjcgnm62v2db1/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sjcgnm62v2db1.skta.com)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    SQL> CREATE PUBLIC DATABASE LINK sqlserver CONNECT TO "sa" IDENTIFIED BY "gnm123" USING 'dg4msql';
    Database link created.
    SQL> select * from dual@sqlserver;
    select * from dual@sqlserver
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    SQL> select * from "sys"."tables"@sqlserver;
    select * from "sys"."tables"@sqlserver
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from SQLSERVER
    Pl help.

    Hi Klaus,
    I just pick the gateway 11.2.0.3 patch to the installation. Here I got error and patch installation failed.
    [oracle@sjcgnm62v2db1 13092292]$ opatch apply
    Invoking OPatch 11.2.0.1.7
    Oracle Interim Patch Installer version 11.2.0.1.7
    Copyright (c) 2011, Oracle Corporation.  All rights reserved.
    Oracle Home       : /home/oracle/11g/product/11
    Central Inventory : /home/oracle/oraInventory
       from           : /etc/oraInst.loc
    OPatch version    : 11.2.0.1.7
    OUI version       : 11.2.0.3.0
    Log file location : /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
    Applying interim patch '13092292' to OH '/home/oracle/11g/product/11'
    Verifying environment and performing prerequisite checks...
    Prerequisite check "CheckApplicable" failed.
    The details are:
    Patch 13092292: Required component(s) missing : [ oracle.rdbms.tg4db2, 11.2.0.3.0 ]
    [ Error during Prerequisite for apply Phase]. Detail: ApplySession failed during prerequisite checks: Prerequisite check "CheckApplicable" failed.
    Log file location: /home/oracle/11g/product/11/cfgtoollogs/opatch/opatch2013-11-26_12-41-27PM.log
    Recommended actions: This patch requires some components to be installed in the home. Either the Oracle Home doesn't have the components or this patch is not suitable for this Oracle Home.
    OPatch failed with error code 39
    [oracle@sjcgnm62v2db1 13092292]$
    Pl help.

  • Username retrieval failed in 10g XE.  Help!! (Thanks!)

    Hi all -
    Any help would be sincerely appreciated! (although who would write "all help would be looked upon poorly" ???)
    Anyway, I installed 10g XE on Windows XP Pro
    Installation was successful, and I AM able to launch the GUI Administrator (i.e., the one that the "Getting Started" doc talks about).
    I'm able to query tables, create users, all that great stuff.
    However, when I go to Start -> Programs -> Oracle Database 10g Express Edition -> Run SQL Command Line,
    I am unsuccessful at being able to Connect.
    I launch the Run SQL Command Line, type in "connect username_i_created/password@xe" and I get the error "ORA-12631: Username retrieval failed"
    This username DOES exist and I can see and query when I go through the GUI.
    Any thoughts or suggestions?
    Thanks Again!!
    R-

    Thank you all, for your suggestions! Unfortunately, I'm still having problems.
    Ultimately, I have another software application that is meant to connect to my Oracle database. That's failing with the same ORA-12631 error as I mentioned.
    I'm still unable to log in, even directly, via SQL*Plus.
    Through my Command window:
    C:\>echo %ORACLE_SID%
    XE
    C:\>echo %ORACLE_HOME%
    C:\oraclexe\app\oracle\product\10.2.0\server
    C:\sqlplus username/password
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 15 10:51:29 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12631: Username retrieval failed
    and my sqlnet.ora file is posted here:
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    my tnsnames.ora file:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = full computer name from My Computer->Properties->Computer Name)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    my listner.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = full computer name from My Computer->Properties->Computer Name)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)

  • CVU ERROR:Unable to retrieve database release version

    Hi all, I want to install RAC on three nodes,but when I run "cluvfy" as ORACLE user, I got errors:
    ./runcluvfy.sh stage -pre crsinst -n nrac1,nrac2,nrac3 -verbose
    ERROR:
    Unable to retrieve database release version.
    Verification cannot proceed.
    but the ROOT user can run it with few errors , why?
    how can I do ?

    I was getting this same mysterious error immediately after a successful CRS install. The command I was running was "runcluvfy.sh stage -pre dbinst -n node1" from my stage directory. All previous executions worked correctly. My thought now is that the CRS install added JRE files that interrupt its paths; still not sure though.
    The MetaLink article referenced above was very helpful in the end but only after I paid special attention to the wording at the very bottom. Originally, I dismissed the article because it is primarily for Solaris; while we are using Red Hat AS 4 update 5. However, in the very last sentence it states the following:
    "Note: If you encounter same error for cluvfy stage -pre crsinst -n node on Linux x86-64 platform before CRS installation, please check if jdk 1.5 is installed. cluvfy works with jdk 1.4. Please install jdk 1.4 or install CRS and run cluvfy from CRS installation."
    Ah, we had also installed JSE 6. And sure enough executing 'java -version' showed that it was picking up the path to JSE 6 not the 1.4.
    So, following the note in the above article, I did two things. First, I changed the CV_HOME variable to $ORACLE_HOME/bin and ran 'which cluvfy' to verify the correct location. Second, I executed "cluvfy.sh stage -pre dbinst -n node1". It worked!

  • Post-Installation of RAC: main directory and file to set ORACLE_HOME ?

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have just finished installing Grid infrastructure and RAC database 11gR2 successfully.
    After that, I add the entries into the file /home/ora11g/.bash_profile as below:
    export ORACLE_SID=racdb2;
    export ORACLE_HOME=/u02/11g_db/ora11g/racdb;
    export GRID_HOME=/u01/app/grid;
    PATH=$GRID_HOME/bin:$ORACLE_HOME/bin:$PATH; export PATH;
    After that, I run the following command:
    [ora11g@rac2 /]$ /u02/11g_db/ora11g/racdb/bin/srvctl config database -d racdb
    Its output:
    ORACLE_HOME environment variable is not set.
    ORACLE_HOME should be set to main directory that contains Oracle products.
    Set and export ORACLE_HOME and then re-run.
    My questions are:
    First, I have added entries into the file /home/ora11g/.bash_profile. Why it still says "ORACLE_HOME environment variable is not set" ? Is this way wrong ?
    Second, what are the main directory and the file to set ORACLE_HOME ?
    Thanks.

    Folks,
    Hello. Thanks a lot for replying. I reboot OS and run the commands as below:
    [ora11g@rac2 bin]$ ./srvctl config database -d racdb
    Its output:
    PRCD-1027 : Failed to retrieve database racdb
    PRCR-1070 : Failed to check if resource ora.racdb.db is registered
    Cannot communicate with crsd
    [ora11g@rac2 bin]$ ./sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Mar 9 15:28:59 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter user-name: SYS
    Enter password: SYS
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: SYSTEM
    Enter password: SYSTEM
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: SYSMAN
    Enter password: SYSMAN
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    [ora11g@rac2 bin]$
    As we see the outputs above for the 2 commands "srvctl" and "sqlplus", my questions are:
    First, why cannot retrieve database racdb ?
    Second, sqlplus is poped up. Why users SYS, SYSTEM, SYSMAN cannot log in ?
    Third, does my RAC database installation have problems ?
    Thanks.

  • Retrieving error messages from lpxus.msg

    What methods must be invoked in order to retrieve the correct error codes.
    Eg 202 means 'file not found'.
    How would be retrieve this message from \mesg\lpxus.msg(using the C++ XML Parser)
    There are no examples in the samples.
    null

    Hi,
    This is explained in the readme and function documentation:
    Currently, the only message file is in English although message files for
    other languages may be supplied in future releases. You should set the
    environment variable <tt>ORA_XML_MESG</tt> to point to the <b>absolute
    path</b> of the <tt>mesg/</tt> subdirectory. Alternately, if you have an
    <tt>$ORACLE_HOME</tt> installed, you may copy the contents of the
    <tt>mesg/</tt> subdirectory to the <tt>$ORACLE_HOME/oracore/mesg directory</tt>.
    The function documentation for xmlinit() explains the msghldr parameter that can
    be used to process error messages (or they are printed to stderr if msghdlr not
    supplied).
    Thanks,
    Oracle XML Team
    null

  • Instant client and Error while trying to retrieve text for error ORA-01019

    For an older Windows app, I am exploring using Windows 32 bit IC  instead of a full Oracle client installation:
    IC 10.1.0.5 works fine for me but has the problem of not being able to connect if run from a folder containing parens ().  ie.,   C:\Program Files (x86).
    IC 10.2.0.3  gives the error "Cannot load any communication DLLs, network may not be installed".  SQL+ works.
    IC 10.2.0.4 gives the error "Error while trying to retrieve text for error ORA-01019".  SQL+ works.
    Does someone know why these three versions of IC would behave this differently on the same environment?
    I have tried all sorts of things with ORACLE_HOME and TNS_ADMIN with IC 10.2.0.4.
    Do you know which client version is the first to have the fix for the known C:\Program Files (x86) connect problem?
    Or are their patches to IC 10.1.0.5 that I could implement ?
    Any help or enlightenment would be appreciated.

    The web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
    These may help:
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
    http://blogs.oracle.com/opal/2006/05/01

Maybe you are looking for

  • How do I bounce audio and midi tracks at the same time to burn a CD?

    Hi there, I would like to bounce a song with both audio and midi tracks recorded in it onto a CD. Despite ensuring that I am doing a realtime bounce (not offline) I am only getting the audio tracks burnt onto the CD - the midi isn't getting bounced t

  • Default operation for File Vault

    Just a suggestion for the folks at Apple. When I shut down, the "save disk space" dialog does not always immediately appear. Sometimes I walk away from the computer and come back later with the dialog still open. Why not put in a default similar to t

  • Solid state hard drive space problem

    hello to all, my friend owns the macbook air, we bought the one with the 64GB solid state hard drive.... we checked all the folders within the user folder (application, library, music etc.) and they total a 12GB or so of space! but it says the hard d

  • Saml authentication error-cross domains

    Hi, I am trying to setup the SAML 1.1 authentication with OWSM Policy for my SOA composite. The Web Service contains a simple hello operation which is called by an external client also BPEL service. The SOA service is just an SAML assertion consumer.

  • Build WAR with servlet in JAR not work

    I am building a WAR file and have a bunch of jars and one of the jars has 2 servlets. When I create new web component from deploytool, I add all the jars and no class files. I then get to a page where I can select servet,jsp, or no component. I selec