OCIEnvNlsCreate() failed: OCI8+PHP+Linux+Oracle 11g

Hi All,
I've been struggling with this since 3 days. I'm getting the following error while using oci_connect:
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries
My system configuration:
PHP : 5.3.3
OS: Red Hat Enterprise Linux Server release 6.1
Oracle: 11g
OCI8: 1.4.9
My phpInfo() shows that OCI8 is configured with PHP. I did set the LD_LIBRARY_PATH to Instantclient in httpd conf file itself and gave permission 777 just to make sure it's not permission issue. I did not set any ORACLE_HOME because my Oracle database is on a different server.
Please help!!

Your post doesn't contain enough detail to identify a cause.
See Unable load  library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1 It is an example of a post that has good detail.

Similar Messages

  • Shared Services Database configuration Failed - EPM 11, Linux, Oracle 11g

    Hi, I am trying to install Oracle EPM 11 on linux machine and I obtain a error when I configure Shared Services repository. The error log say:
    com.hyperion.hub.HubDBConfigurator, ERROR, Unable to delete entries in OpenLDAP, failed with result code 1
    com.hyperion.hub.HubDBConfigurator, ERROR, Error: java.lang.Exception: Unable to seed initial entries in OpenLDAP
    com.hyperion.cis.config.wizard.RunAllTasksWizardAction, ERROR, Error: com.hyperion.cis.config.ProcessingException
    org.apache.catalina.core.ApplicationContext, ERROR, StandardWrapper.Throwable java.lang.NullPointerException
    org.apache.catalina.core.StandardContext, ERROR, El Servlet /interop lanzó excepción de load() java.lang.NullPointerException
    I am using Oracle Enterprise Linux 5, Oracle Database 11g, and default application server.
    My machine have Intel dual core processor, 2 gb ram, 50 GB availables on Oracle EPM installation partition.
    I hope that some body can help me!!
    best regards,
    ASolar.

    Hi ASolar,
    Were you able to solve this problem? If so if you could tell us how you solved it we would greatly appreciate it.
    We have had the same issue trying to re-configure the Foundation service on Sun Solaris (SPARC 64bit) with Oracle 10G.
    (Oct 14, 2009, 00:11:03 PM), com.hyperion.hit.registry.Registry, ERROR, Exception when trying to store the component
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.RangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at com.hyperion.hit.registry.JDBCRegistryUtils.storeComponent(JDBCRegistryUtils.java:612)
    at com.hyperion.hit.registry.JDBCRegistryUtils.saveComponent(JDBCRegistryUtils.java:166)
    at com.hyperion.hit.registry.Registry.storeComponent(Registry.java:2749)
    at com.hyperion.hit.registry.Registry.getInstance(Registry.java:353)
    at com.hyperion.config.wizard.impl.RegistryWizardRule.validate(RegistryWizardRule.java:66)
    at com.hyperion.cis.config.wizard.adapter.WizardFormAdapterPanel.queryEnter(WizardFormAdapterPanel.java:80)
    at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(Unknown Source)
    at com.installshield.wizard.swing.SwingWizardUI.currentBeanChanged(SwingWizardUI.java:842)
    at com.installshield.wizard.StandardWizardListener.currentBeanChanged(Unknown Source)
    at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1822)
    (Oct 14, 2009, 00:12:36 PM), com.hyperion.hub.HubDBConfigurator, ERROR, Unable to delete entries in OpenLDAP, failed with result c
    ode 1
    (Oct 14, 2009, 00:12:36 PM), com.hyperion.hub.HubDBConfigurator, ERROR, Error:
    java.lang.Exception: Unable to seed initial entries in OpenLDAP
    at com.hyperion.hub.HubDBConfigurator.refreshOpenLdap(HubDBConfigurator.java:573)
    at com.hyperion.hub.HubDBConfigurator.configure(HubDBConfigurator.java:174)
    at com.hyperion.foundation.config.FoundationDbConfigurator.configure(FoundationDbConfigurator.java:62)
    at com.hyperion.cis.config.wizard.RunAllTasksWizardAction.executeDbConfigTask(RunAllTasksWizardAction.java:658)
    at com.hyperion.cis.config.wizard.RunAllTasksWizardAction.execute(RunAllTasksWizardAction.java:202)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Many thanks,
    James

  • Slow connecting to remote Linux oracle 11g

    Hi
    Please help below is the problem
    i have linux oracle 11g installed newly, while trying to connect from remote desktop through tnsnames or sqldeveloper, the connection is taking 10 sec to connect.
    I cleared listener.log also
    Thanks
    91-9663615728

    Printed the requested command output please let me know what to do on this issue.
    Thanks a lot
    cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.132.99 sdd-dev-oracle11g sdd-dev-oracle11g.yelladworks.in
    192.168.132.100 sdd-qa-oracle11g sdd-qa-oracle11g.yelladworks.in
    192.168.132.197 bnw-oracle bnw-oracle.yelladworks.in
    # Magnum Studios
    192.168.128.103 mag1-sls
    192.168.128.104 mag1-db
    192.168.128.105 mag1-app1
    192.168.128.106 mag1-app2
    192.168.128.107 mag1-app3
    192.168.128.107 mag1-app
    192.168.132.103 mag2-sls
    192.168.132.104 mag2-db
    192.168.132.105 mag2-app1
    192.168.132.106 mag2-app2
    192.168.132.107 mag2-app3
    # Lisa BNW UAT Kit
    192.168.132.36 rhel-bnw-clipper01
    192.168.132.37 rhel-bnw-clipper02
    192.168.132.38 rhel-bnw-controller01
    192.168.132.39 rhel-bnw-esb01
    192.168.132.40 rhel-bnw-modules01
    192.168.132.41 rhel-bnw-msg01
    192.168.132.42 rhel-bnw-security01
    192.168.132.43 rhel-bnw-oracle-11g
    # India UAT Kit Hosts, Sun V490 #1
    192.168.132.135 mag-uat1
    192.168.132.161 fo1-db
    192.168.132.162 fo1-sls
    192.168.132.163 fo1-app1
    192.168.132.164 fo1-app2
    192.168.132.165 studio1
    192.168.132.166 studio2
    192.168.132.167 pag
    192.168.132.176 alfresco
    # India UAT Kit Hosts, Sun V490 #2
    192.168.132.136 mag-uat2
    192.168.132.168 fo2-db
    192.168.132.169 fo2-sls
    192.168.132.170 fo2-app1
    192.168.132.171 fo2-app2
    192.168.132.172 studio3
    192.168.132.173 studio4
    192.168.132.174 svb
    192.168.132.175 bibo
    192.168.132.149 pag-client
    192.168.132.197 bnw-oracle
    192.168.132.47 bnw-oracle-10g
    # VMware Host Hardware
    192.168.132.145 india-uat-vmware01
    192.168.132.181 uat-ipn01
    192.168.132.182 uat-ipn02
    192.168.132.183 uat-ipn03
    192.168.132.184 uat-ipn04
    192.168.132.185 uat-ipn05
    192.168.132.186 uat-ipn06
    192.168.132.187 uat-ipn07
    192.168.132.188 uat-ipn08
    192.168.132.189 uat-ipn09
    192.168.132.190 uat-ipn10
    192.168.132.191 uat-ipn11
    192.168.132.192 uat-ipn12
    192.168.132.193 uat-ipn13
    192.168.132.194 uat-ipn14
    192.168.132.195 uat-ipn15
    192.168.132.196 uat-ipn16
    192.168.132.146 india-uat-vmware02
    192.168.132.149 pag-client
    192.168.132.150 setipn-uat
    192.168.132.151 trapping01
    192.168.132.152 trapping02
    192.168.132.153 trapping03
    192.168.132.154 trapping04
    192.168.132.247 jira-uat
    192.168.132.147 india-uat-vmware03
    192.168.132.155 ascent01
    192.168.132.156 ascent02
    192.168.132.157 ascent03
    192.168.132.158 diad
    192.168.132.178 ff-render01
    192.168.132.208 ff-render02
    192.168.132.207 ff-render03
    192.168.132.179 openedit
    192.168.132.180 vdp
    192.168.132.71 india-uat-vmware04
    192.168.132.72 india-uat-vmware05
    cat /etc/nsswitch.conf
    # /etc/nsswitch.conf
    # An example Name Service Switch config file. This file should be
    # sorted with the most-used services at the beginning.
    # The entry '[NOTFOUND=return]' means that the search for an
    # entry should stop if the search in the previous entry turned
    # up nothing. Note that if the search failed due to some other reason
    # (like no NIS server responding) then the search continues with the
    # next entry.
    # Legal entries are:
    # nisplus or nis+ Use NIS+ (NIS version 3)
    # nis or yp Use NIS (NIS version 2), also called YP
    # dns Use DNS (Domain Name Service)
    # files Use the local files
    # db Use the local database (.db) files
    # compat Use NIS on compat mode
    # hesiod Use Hesiod for user lookups
    # [NOTFOUND=return] Stop searching if not found so far
    # To use db, put the "db" in front of "files" for entries you want to be
    # looked up first in the databases
    # Example:
    #passwd: db files nisplus nis
    #shadow: db files nisplus nis
    #group: db files nisplus nis
    passwd: files
    shadow: files
    group: files
    #hosts: db files nisplus nis dns
    hosts: files dns
    # Example - obey only what nisplus tells us...
    #services: nisplus [NOTFOUND=return] files
    #networks: nisplus [NOTFOUND=return] files
    #protocols: nisplus [NOTFOUND=return] files
    #rpc: nisplus [NOTFOUND=return] files
    #ethers: nisplus [NOTFOUND=return] files
    #netmasks: nisplus [NOTFOUND=return] files
    bootparams: nisplus [NOTFOUND=return] files
    ethers: files
    netmasks: files
    networks: files
    protocols: files
    rpc: files
    services: files
    netgroup: nisplus
    publickey: nisplus
    automount: files nisplus
    aliases: files nisplus
    cat /etc/resolv.conf
    search yelladworks.in
    nameserver 192.168.132.10
    nameserver 192.168.128.10

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • Convert Window Oracle 10g to Linux Oracle 11g

    HI Experts
    My current version is Oracle 10g on Window and i want to convert on Oracle 11g on Linux.
    What will be the best way to convert it ? can possible to direct convert
    or i need to be database migration from window Oracle 10g to Linux Oracle 10g and then covert from Linux Oracle 10g to Linux Oracle 11g.
    If the direct conversion is possible then please let me know the way or if u have document then please share it.
    I searched lot but i didn't get anything.....
    Thanks in advance

    What is the expected downtime duration ?
    What is the database size ?
    For a "small" database with no downtime constraint you could use Data Pump to move data.
    For a "large" database with minimum downtime you could use Oracle Streams (with Enterprise Edition) or Golden Gate (separate product: needs new licensing).
    You can find detailed migration/upgrade recommendations and scenarios on OTN database upgrade page:
    http://www.oracle.com/technetwork/products/upgrade/index.html
    Edited by: P. Forstmann on 22 mars 2013 13:03

  • Tns time out windows client , server on linux oracle 11g R1

    I have Windows 7 as the host machine and Oracle 11g R1 client installed on it.
    I installed VMWare V5.5 (downloaded from oracle site) and then installed Linux on it as guest OS. I have Oracle database 11g R1 intalled on Linux.
    I can ping the Linux server from Windows.
    I can also ftp to the Linux server from windows and get the files locally on Windows OS.
    The listener and tns files are configured correctly (i assume) on both Linux and Windows.
    Listener.ora on Linux
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME =CLRExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_2)
    (PROGRAM = extproc)
    (SID_DESC=
    (GLOBAL_DBNAME=orcl)
    (ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_2)
    (SID_NAME=orcl)
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.159.132)(PORT = 1521)) ) )
    Tnsnames.ora on linux
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.159.132)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    Sqlnet.ora on Linux
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    SQLNET.INBOUND_CONNECT_TIMEOUT = 300
    SQLNET.SEND_TIMEOUT = 300
    SQLNET.RECV_TIMEOUT = 300
    Windows files
    Tnsnames.ora on Windows
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.159.132 )(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl) )
    Sqlnet.ora on Windows
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    SQLNET.INBOUND_CONNECT_TIMEOUT = 300
    SQLNET.SEND_TIMEOUT = 300
    SQLNET.RECV_TIMEOUT = 300
    The error on windows
    ping results on windows
    C:\Users\sri>ping 192.168.159.132
    Pinging 192.168.159.132 with 32 bytes of data:
    Reply from 192.168.159.132: bytes=32 time<1ms TTL=64
    Reply from 192.168.159.132: bytes=32 time<1ms TTL=64
    Reply from 192.168.159.132: bytes=32 time<1ms TTL=64
    Reply from 192.168.159.132: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.159.132:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Users\sri>tnsping orcl
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 23-JUL-2010 19:55:56
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\or11g\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    **Used TNSNAMES adapter to resolve the alias**
    **Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.159.132)(PORT = 1**
    **521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))**
    **TNS-12535: TNS:operation timed out**

    # sqlnet.ora Network Configuration File: C:\or11g\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # 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)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    SQLNET.INBOUND_CONNECT_TIMEOUT = 300
    SQLNET.SEND_TIMEOUT = 300
    SQLNET.RECV_TIMEOUT = 300

  • Create Type as Object not working in linux oracle 11g

    Pleae refer to the following simple create type as object statement.
    CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER)
    It is working in oracle 11g and windows server 2008 environment.
    But it is not working in oracle 11g with linux environment.
    I am executing this statement as dynamic sql as follows
    CREATE OR REPLACE PROCEDURE TEMP_SP
    AS
    BEGIN
    DECLARE vcType VARCHAR2(30);
    BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;
    exec TEMP_SP
    please let me know what i am missing ?

    And error is:ORA-00600: internal error code, arguments: [kothc_uc_md5:lxerr], [], [], [], [], [], [], [], [], [], [], []
    ORA-06512: at "ATIPAGENT.TEMP_SP", line 10
    ORA-01403: no data found
    ORA-06512: at line 1
    ..Query:exec TEMP_SP...Previous Query:CREATE OR REPLACE PROCEDURE TEMP_SP AS BEGIN DECLARE vcType VARCHAR2(30); BEGIN
    SELECT OBJECT_TYPE into vcType FROM USER_OBJECTS
    WHERE OBJECT_NAME='EC_VIEWABLETYPES' AND OBJECT_TYPE='TYPE'; EXCEPTION WHEN NO_DATA_FOUND THEN
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) ';
    COMMIT;
    RETURN;
    END;
    END;

  • Howto install SAP NW Windows Server with Linux Oracle 11g?

    Hi !!!
    In this moment i want to install a SAP Netweaver PI, but the client already has a linux database server with oracle.
    I read the MasterGuide but i cannot find the section or similar situation.
    Scenario
    WK8-PI
    192.168.1.100
    Admin y passwd
    Linux-Oracle
    192.168.1.77
    port: 3355
    user y passwd
    how to install SAP NW?
    Levy

    Hi!!!
    i read the instruction with Distribution System, and continue the steps, but the time to choose SAP System Database i cannot write the linux server always show me the Windows Server, and i can write the unique field is the instance. After push the next button and send me error, not install oracle database.
    thanks
    Levy Gonzalez

  • Apache, PHP, and Oracle 11G

    Hi,
    I have an 11G RAC Setup, and a separate application server that runs php that is presently connecting to MySQL Servers.
    I just configured OCI8 in my application server and can see that my configurations are correct using phpinfo().
    iam using this code to connect to my RAC 11G:
    <?php
    if(!$conn = oci_connect('sys', 'opensesame','callbox.oracle'))
    $err = oci_error();
    trigger_error('Could Not Establish a Connection:'.$err['message'], E_USER_ERROR);
    ?>
    but i get this error:
    Warning: oci_connect() [function.oci-connect]: ORA-12154: TNS:could not resolve the connect identifier specified in /var/www/html/oraconn.php on line 6
    here's tnsnames.ora in my RAC, using sqlplus via command line works perfectly fine in either nodes of the rac.
    LISTENERS_CALLBOX =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
    CALLBOX2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    (INSTANCE_NAME = callbox2)
    CALLBOX1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    (INSTANCE_NAME = callbox1)
    CALLBOX =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    am I missing something?

    i forgot to include that the tutorial that helped me configure the OCI8 for PHP suggests that i need to create tnsnames.ora in /etc like this:
    SERVICENAME =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ip_of_oracle_server)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SID)
    (SID = SID)
    so I created this:
    CALLBOX1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.50.161)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    (INSTANCE_NAME = callbox1)
    and did this: export TNS_ADMIN=/etc/
    am not sure which part of my tnsnames.ora in the RAC (posted earlier) be copied in /etc/tnsnames.ora in the application server.

  • Need to Clone A Database From Solaris to Linux Oracle 11g

    Hi Team,
    I am using Oracle Database Version 11.2.0.1.
    We have 6 production servers and all of them are in solaris box. We have a new requirement from application to use Linux boxes and for that we need to perform a database refresh from Solaris to Linux box.
    I can do it by Export and Import technique. But I want some other way to perform this database refresh activity.
    1] Can I do it while taking a rman backup from solaris box( Source) and restore it back to Linux( Target)?
    2] Can I do it using transportable tablespace method?
    I am aware of performing this using export-import but as our database size is near of 1TB I can't apply this technique.
    I need your suggestions in this activity, please put your opinion on the correct method I should opt for and along with that share me the supporting document where things are mentioned in step by step way.
    Please let me know if this can achieved by RMAN...
    Source Machine Make:-
    bash-3.00$ uname -a
    SunOS blrdlvdwhdb01 5.10 Generic_142909-17 sun4v sparc SUNW,Sun-Blade-T6320
    Target System Make:-
    Linux blrulvremoradb01 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    Regards,
    Arijit

    Yes, you can create a backup with rman and restore in other platform, check:
    How To Use RMAN CONVERT DATABASE on Source Host for Cross Platform Migration - 413586.1
    Cross-Platform Migration on Destination Host Using Rman Convert Database - Note 414878.1
    but easier and faster will be with expdp/impdp.

  • Oracle 11g dg4odbc OpenLink postgres odbc driver for Linux... Integer issue

    We were using scuccessfully the openlink driver for postgres odbc driver to connect oracle and postgres in solaris and oracle 10g hsodbc
    we are migrating to Linux Oracle 11g and installed linux psotgres odbc driver and configured oracle 11g dg4odbc gateway.
    We could connect from oracle and retrive the data from postgres.
    Issue we have is
    The integer data is not showing correctly…
    For example in the postgres the value is 1 and in oracle its shown as 4294967297.
    thanks,
    Sirisha

    this is the trace when its working for
    select * from "cognos_enrollmentdtl_s"@testag where "trial_id" = 39
    and for 39 its returning 167503724583 thsi value in the result set.
    Oracle Corporation --- THURSDAY SEP 30 2010 10:39:28.243
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY SEP 30 2010 10:39:28.243
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "4"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "testag"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:testag
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=31
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/09/30-10:39:28
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/OpenLink/lib/libodbc.so"
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLAllocHandle
    symbol_peflctx=0xaab20640
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLBindCol
    symbol_peflctx=0xaab18a10
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLBindParameter
    symbol_peflctx=0xaab153d0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLCancel
    symbol_peflctx=0xaab10200
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDescribeParam
    symbol_peflctx=0xaab080c0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDisconnect
    symbol_peflctx=0xaab05e00
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLEndTran
    symbol_peflctx=0xaab1a360
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLExecute
    symbol_peflctx=0xaab09440
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFetch
    symbol_peflctx=0xaab0a7a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFreeHandle
    symbol_peflctx=0xaab1fbd0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLFreeStmt
    symbol_peflctx=0xaab111d0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetData
    symbol_peflctx=0xaab0a210
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetEnvAttr
    symbol_peflctx=0xaab1f870
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetFunctions
    symbol_peflctx=0xaab11f70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLMoreResults
    symbol_peflctx=0xaab09ce0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLNumResultCols
    symbol_peflctx=0xaab17f70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLParamData
    symbol_peflctx=0xaab08a20
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPutData
    symbol_peflctx=0xaab08680
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLRowCount
    symbol_peflctx=0xaab180b0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetEnvAttr
    symbol_peflctx=0xaab1fa30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetDescRec
    symbol_peflctx=0xaab1bc10
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLColAttribute
    symbol_peflctx=0xaab1b890
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLColumns
    symbol_peflctx=0xaab007b0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLConnect
    symbol_peflctx=0xaab05c50
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDescribeCol
    symbol_peflctx=0xaab17d50
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLDriverConnect
    symbol_peflctx=0xaab07d30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLExecDirect
    symbol_peflctx=0xaab092e0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLForeignKeys
    symbol_peflctx=0xaaaffc20
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetConnectAttr
    symbol_peflctx=0xaab1d8a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDescField
    symbol_peflctx=0xaab1cfe0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDescRec
    symbol_peflctx=0xaab1c3b0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDiagField
    symbol_peflctx=0xaab0ed30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetDiagRec
    symbol_peflctx=0xaab0d5a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetInfo
    symbol_peflctx=0xaab130a0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetStmtAttr
    symbol_peflctx=0xaab1f6e0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLGetTypeInfo
    symbol_peflctx=0xaaafd250
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPrepare
    symbol_peflctx=0xaab16560
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLPrimaryKeys
    symbol_peflctx=0xaaafeed0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLProcedureColumns
    symbol_peflctx=0xaaafe550
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLProcedures
    symbol_peflctx=0xaaafdad0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetConnectAttr
    symbol_peflctx=0xaab1df70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetStmtAttr
    symbol_peflctx=0xaab1f260
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLSetDescField
    symbol_peflctx=0xaab1cb30
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLStatistics
    symbol_peflctx=0xaaafb6f0
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Entered hgolofns at 2010/09/30-10:39:28
    libname=/usr/local/OpenLink/lib/libodbc.so, funcname=SQLTables
    symbol_peflctx=0xaab01d70
    hoaerr:0
    Exiting hgolofns at 2010/09/30-10:39:28
    Exiting hgolofn, rc=0 at 2010/09/30-10:39:28
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/09/30-10:39:28
    Entered hgolgon at 2010/09/30-10:39:28
    reco:0, name:readonly, tflag:0
    Entered hgosuec at 2010/09/30-10:39:28
    Exiting hgosuec, rc=0 at 2010/09/30-10:39:28
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using readonly as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/09/30-10:39:28
    HS_FDS_CONNECT_INFO = "testag"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/09/30-10:39:28
    dsn:testag, name:readonly
    optn:
    Entered hgocip at 2010/09/30-10:39:28
    dsn:testag
    Exiting hgocip, rc=0 at 2010/09/30-10:39:28
    ##>Connect Parameters (len=40)<##
    ## DSN=testag;
    #! UID=readonly;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2010/09/30-10:39:28
    Entered hgolosf at 2010/09/30-10:39:28
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFD7F 0x015F 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xFA00 0x3F5F
    Exiting hgolosf, rc=0 at 2010/09/30-10:39:28
    DriverName:pgr7_mt_lt.so, DriverVer:06.01.0524 OpenLink PostgreSQL Lite Driver
    DBMS Name:PostgreSQL, DBMS Version:07.02.0000
    Exiting hgocont, rc=0 at 2010/09/30-10:39:28
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 32 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2010/09/30-10:39:28
    Entered hgoulcp at 2010/09/30-10:39:28
    Entered hgowlst at 2010/09/30-10:39:28
    Exiting hgowlst, rc=0 at 2010/09/30-10:39:28
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xa
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 32 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 32 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns N for SQL_COLUMN_ALIAS
    5 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x00000000, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 0
    capno:3007, context:0x00000000, add-info: -3, translation:"36"
    Exiting hgoulcp, rc=0 at 2010/09/30-10:39:28
    Entered hgouldt at 2010/09/30-10:39:28
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2010/09/30-10:39:28
    Entered hgobegn at 2010/09/30-10:39:28
    tflag:0 , initial:1
    hoi:0x2db07578, ttid (len 26) is ...
    00: 4D4D4D41 54524958 2E623835 34333234 [testac.b854324]
    10: 322E382E 31332E37 3936 [2.8.13.796]
    tbid (len 23) is ...
    00: 4D4D4D41 54524958 5B382E31 332E3739 [testac[8.13.79]
    10: 365D5B31 2E345D [6][1.4]]
    Exiting hgobegn, rc=0 at 2010/09/30-10:39:28
    Entered hgodtab at 2010/09/30-10:39:28
    count:1
    table: cognos_enrollmentdtl_s
    Allocate hoada[0] @ 0x5f38a60
    Entered hgopcda at 2010/09/30-10:39:28
    Column:1(trial_id): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:2(trial_name): dtype:12 (VARCHAR), prc/scl:64/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:3(subjcnt): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:4(total_expected_enrollment): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:5(site_name): dtype:12 (VARCHAR), prc/scl:256/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    The hoada for table cognos_enrollmentdtl_s follows...
    hgodtab, line 876: Printing hoada @ 0x5f38a60
    MAX:5, ACTUAL:5, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
    12 VARCHAR Y 0 0 0/ 0 0 0 200 trial_name
    4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
    4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
    12 VARCHAR Y 0 0 0/ 0 0 0 200 site_name
    Exiting hgodtab, rc=0 at 2010/09/30-10:39:28
    Entered hgodafr, cursor id 0 at 2010/09/30-10:39:28
    Free hoada @ 0x5f38a60
    Exiting hgodafr, rc=0 at 2010/09/30-10:39:28
    Entered hgopars, cursor id 1 at 2010/09/30-10:39:28
    type:0
    SQL text from hgopars, id=1, len=151 ...
    00: 53454C45 43542041 312E2274 7269616C [SELECT A1."trial]
    10: 5F696422 2C41312E 22747269 616C5F6E [_id",A1."trial_n]
    20: 616D6522 2C41312E 22737562 6A636E74 [ame",A1."subjcnt]
    30: 222C4131 2E22746F 74616C5F 65787065 [",A1."total_expe]
    40: 63746564 5F656E72 6F6C6C6D 656E7422 [cted_enrollment"]
    50: 2C41312E 22736974 655F6E61 6D652220 [,A1."site_name" ]
    60: 46524F4D 2022636F 676E6F73 5F656E72 [FROM "cognos_enr]
    70: 6F6C6C6D 656E7464 746C5F73 22204131 [ollmentdtl_s" A1]
    80: 20574845 52452041 312E2274 7269616C [ WHERE A1."trial]
    90: 5F696422 3D3339 [_id"=39]
    Exiting hgopars, rc=0 at 2010/09/30-10:39:28
    Entered hgoopen, cursor id 1 at 2010/09/30-10:39:28
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/30-10:39:28
    Entered hgodscr, cursor id 1 at 2010/09/30-10:39:28
    Allocate hoada @ 0x5f38a60
    Entered hgopcda at 2010/09/30-10:39:28
    Column:1(trial_id): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:2(trial_name): dtype:12 (VARCHAR), prc/scl:64/0, nullbl:2, octet:64, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:3(subjcnt): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:64, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:4(total_expected_enrollment): dtype:4 (INTEGER), prc/scl:10/0, nullbl:2, octet:64, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    Entered hgopcda at 2010/09/30-10:39:28
    Column:5(site_name): dtype:12 (VARCHAR), prc/scl:256/0, nullbl:2, octet:256, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/30-10:39:28
    hgodscr, line 880: Printing hoada @ 0x5f38a60
    MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
    12 VARCHAR Y 64 64 0/ 0 0 0 200 trial_name
    4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
    4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
    12 VARCHAR Y 256 256 0/ 0 0 0 200 site_name
    Exiting hgodscr, rc=0 at 2010/09/30-10:39:28
    Entered hgoftch, cursor id 1 at 2010/09/30-10:39:28
    hgoftch, line 130: Printing hoada @ 0x5f38a60
    MAX:5, ACTUAL:5, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    4 INTEGER Y 4 4 0/ 0 0 0 0 trial_id
    12 VARCHAR Y 64 64 0/ 0 0 0 200 trial_name
    4 INTEGER Y 4 4 0/ 0 0 0 0 subjcnt
    4 INTEGER Y 4 4 0/ 0 0 0 0 total_expected_enrollment
    12 VARCHAR Y 256 256 0/ 0 0 0 200 site_name
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -16, bflsz: 4
    SQLBindCol: column 2, cdatatype: 1, bflsz: 65
    SQLBindCol: column 3, cdatatype: -16, bflsz: 4
    SQLBindCol: column 4, cdatatype: -16, bflsz: 4
    SQLBindCol: column 5, cdatatype: 1, bflsz: 257
    SQLFetch: row: 1, column 1, bflsz: 4, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 1, column 2, bflsz: 65, bflar: 15
    SQLFetch: row: 1, column 2, bflsz: 65, bflar: 15, (bfl: 64, mbl: 64)
    SQLFetch: row: 1, column 3, bflsz: 4, bflar: 8
    SQLFetch: row: 1, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 1, column 4, bflsz: 4, bflar: 8
    SQLFetch: row: 1, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 1, column 5, bflsz: 257, bflar: 23
    SQLFetch: row: 1, column 5, bflsz: 257, bflar: 23, (bfl: 256, mbl: 256)
    SQLFetch: row: 2, column 1, bflsz: 4, bflar: 8
    SQLFetch: row: 2, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 2, column 2, bflsz: 65, bflar: 15
    SQLFetch: row: 2, column 2, bflsz: 65, bflar: 15, (bfl: 0, mbl: 64)
    SQLFetch: row: 2, column 3, bflsz: 4, bflar: 8
    SQLFetch: row: 2, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 2, column 4, bflsz: 4, bflar: 8
    SQLFetch: row: 2, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 2, column 5, bflsz: 257, bflar: 35
    SQLFetch: row: 2, column 5, bflsz: 257, bflar: 35, (bfl: 0, mbl: 256)
    SQLFetch: row: 3, column 1, bflsz: 4, bflar: 8
    SQLFetch: row: 3, column 1, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 3, column 2, bflsz: 65, bflar: 15
    SQLFetch: row: 3, column 2, bflsz: 65, bflar: 15, (bfl: 0, mbl: 64)
    SQLFetch: row: 3, column 3, bflsz: 4, bflar: 8
    SQLFetch: row: 3, column 3, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    SQLFetch: row: 3, column 4, bflsz: 4, bflar: 8
    SQLFetch: row: 3, column 4, bflsz: 4, bflar: 8, (bfl: 4, mbl: 4)
    i will paste the remaing trace in another reply..as the 30000 char exceeded
    Edited by: Kodali.S on Sep 30, 2010 8:22 AM
    Edited by: Kodali.S on Sep 30, 2010 8:25 AM

  • ORACLE 11g + PHP5 problem: "fetch out of sequence" on i5/OS AS/400

    Hi!
    I have a big problem using a database connection to i5 AS/400 with PHP5 OCI8 interface by Oracle 11g:
    when doing a simple "select * from (as400_database_link)" I get this return: "fetch out of sequence... preceding line..."
    I never had this problem with 9i, old transparent gateway.
    BUT:
    when doing for example a "select * from (as400_database_link) where rownum < 1000000" it works fine without problems.
    Anyone an idea how to eliminate this stupid "where rownum < 100000" behaviour?
    I would have to add this in many select statements... ;(
    bye,
    Oliver

    Tach,
    how do you call oci_execute ?
    try oci_execute($query,OCI_DEFAULT);
    I had the same problem with adodb
    $q = " select * from elephant@africa";
    $db->GetAll($q);
    Failed with the same error.
    ADODB called oci_execute with OCI_COMMIT_ON_SUCCESS,which caused my error.
    $q = " select * from elephant@africa";
    $db->BeginTrans();
    $db->GetAll($q);
    $db->CommitTrans(); (or rollback);
    did the job,because BeginTrans changed oci_execute to run with OCI_DEFAULT.
    Hope this helps,
    gw
    Edited by: unficyp123 on Oct 20, 2008 2:51 PM

  • Oracle oci8 problem: OCIEnvNlsCreate() failed

    Hi to all,
    I have installed Apache 2.4.3, PHP 5.3.21 and Oracle Database 10gR2 on a Windows 2003 server. Please that is installed the complete Oracle DB* and not the only Oracle Client.
    When I run phpinfo This is the result:
    OCI8 Support      enabled
    Version      1.4.9
    Revision      $Id: 44bfa713983a99b3e59477f6532e5fb51b6dee94 $
    Active Persistent Connections      0
    Active Connections      0
    Oracle Run-time Client Library Version      0.0.0.0.0
    Oracle Instant Client Version      10.2
    Temporary Lob support      enabled
    Collections support      enabled
    Directive     Local Value     Master Value
    oci8.connection_class     no value     no value
    oci8.default_prefetch     100     100
    oci8.events     Off     Off
    oci8.max_persistent     -1     -1
    oci8.old_oci_close_semantics     Off     Off
    oci8.persistent_timeout     -1     -1
    oci8.ping_interval     60     60
    oci8.privileged_connect     Off     Off
    oci8.statement_cache_size     20     20I have create a file connect.php in order to test my connection:
    <?php
    $dbHost = "win2003vm";
    $dbHostPort="1521";
    $dbServiceName = "myservice";
    $usr = "myuser";
    $pswd = "mypwd";
    $dbConnStr = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
                (HOST=".$dbHost.")(PORT=".$dbHostPort."))
                (CONNECT_DATA=(SERVICE_NAME=".$dbServiceName.")))";
    if(!$dbConn = oci_connect($usr,$pswd,$dbConnStr)){
    $err = oci_error();
    trigger_error('connection failed: ' . $err['message'], E_USER_ERROR);
    $strSQL = "SELECT SYSDATE FROM DUAL";
    $stmt = oci_parse($dbConn,$strSQL);
    if ( ! oci_execute($stmt) ){
    $err = oci_error($stmt);
    trigger_error('Query failed: ' . $err['message'], E_USER_ERROR);
    while(oci_fetch($stmt)){
        $rslt = oci_result($stmt, 1); print "<h3>Query result: ".$rslt."</h3>";
    ?>But when I run the php file, this error is displayed:
    Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\www\win2003vm\connect.php on line 13 Fatal errorCan someone help me ?
    Thank You and best regards
    Gaetano

    The reason the error mentions Instant Client is because this text was
    compiled into the DLL when it was built using Instant Client. You can
    ignore this message phrasing quirk and focus on why OCIEnvNlsCreate()
    failed. Seeing the C code might help explain why the 'wrong' text is
    shown:
         errstatus = OCIEnvNlsCreate(&OCI_G(env), PHP_OCI_INIT_MODE, 0, NULL, NULL, NULL, 0, NULL, 0, 0);
         if (errstatus == OCI_ERROR) {
    #ifdef HAVE_OCI_INSTANT_CLIENT
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCIEnvNlsCreate() failed. There is something wrong with your system - please check that " PHP_OCI8_LIB_PATH_MSG " includes the directory with Oracle Instant Client libraries");
    #else
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and " PHP_OCI8_LIB_PATH_MSG " are set and point to the right directories");
    #endifDo you have other Oracle libraries that are causing a library clash?
    Did you reboot after installing? Is there some permission issue with
    the web server environment? Are you using Apache or ISS. Does this
    help:
    https://blogs.oracle.com/opal/entry/how_to_use_iis_php_and_oracle
    Also see "Commonly Seen Connection and Environment Errors" on p 107 of
    http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
    You may be interested that your $dbConnStr can be simplified. See
    "Easy Connect String" on p 104 of the above book. The variable can be:
    $dbConnStr = "${dbHost}:${dbHostPort}/${dbServiceName}";In fact, since you are using the default port, it could even be just:
    $dbConnStr = "${dbHost}/${dbServiceName}";

  • DBCA fails with java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so Error in Oracle 11g

    Hi,
    After ORACLE 11G software installation i tried to change the ORACLE_HOME directory.
    OS : RHEL 4.5
    DB : 11.2.0
    Previous Home Location :
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/prod/tech_st/product/11.2.0/db_1
    Current Home Loc:
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/db/tech_st/product/11.2.0/db_1
    When i am trying the DBCA command i am getting the below error:
    [oracle@localhost ~]$ dbca
    java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
            at java.lang.Runtime.load0(Runtime.java:769)
            at java.lang.System.load(System.java:968)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:387)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:405)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    [oracle@localhost ~]$
    I tried all possible ways with google help but still i am facing the same issue.Kindly check and suggest to solve the issue.
    Thanks in advance.
    Vijay.

    Hi all,
    I give you the clear details about the issue what i am currently facing,
    1. I installed the 11g (11.2.0) database alone(No EBS) in my local vmware machine.
    2. Created my ORACLE_HOME under /u01/oracle/prod/tech_st/product/11.2.0/db_1 directory after that i tried to change my home location from /u01/oracle/prod/tech_st/product/11.2.0/db_1 location to /u01/oracle/db/tech_st/product/11.2.0/db_1 location, like created /u01/oracle/db directory and moved files from /u01/oracle/prod location.
    3. I changed my bash_profile and exported home with the modified location also deregistered an old home and registered the new home.
    4. When i am issuing echo $ORACLE_HOME it is showing the current home location and ORACLE_SID is same what i created before.
    5. But when i am trying to create one more db using DBCA utility it is through the above error.
    Please suggest me is it possible to change the location after db creation or any extra steps i have to do for this issue.
    Thanks.

  • Oracle 11g: cluvfy failed

    Hi expert,
    i'm trying to install Oracle 11g RAC.
    I don't know why I have an failed in the cluvfy step. Can someone help me?
    [oracle@rac1 bin]$ ./cluvfy stage -pre crsinst -n rac1,rac2 -verbose
    WARNING:
    Could not access or create trace file path "/mnt/OracleRAC/cvupack/bin/../cv/log". Trace information could not be collected
    Performing pre-checks for cluster services setup
    Checking node reachability...
    Check: Node reachability from node "rac1"
      Destination Node                      Reachable?             
      rac2                                  yes                    
      rac1                                  yes                    
    Result: Node reachability check passed from node "rac1"
    Checking user equivalence...
    Check: User equivalence for user "oracle"
      Node Name                             Comment                
      rac2                                  passed                 
      rac1                                  failed                 
    Result: PRVF-4007 : User equivalence check failed for user "oracle"
    WARNING:
    User equivalence is not set for nodes:
         rac1
    Verification will proceed with nodes:
         rac2
    Checking node connectivity...
    Checking hosts config file...
      Node Name     Status                    Comment                
      rac2          passed                                           
    Verification of the hosts config file successful
    Interface information for node "rac2"
    Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU  
    eth0   192.168.2.102   192.168.2.0     0.0.0.0         192.168.2.1     08:00:27:4A:67:8E 1500 
    eth1   192.168.0.102   192.168.0.0     0.0.0.0         192.168.2.1     08:00:27:27:C4:33 1500 
    Check: Node connectivity of subnet "192.168.2.0"
    Result: Node connectivity passed for subnet "192.168.2.0" with node(s) rac2
    Check: TCP connectivity of subnet "192.168.2.0"
      Source                          Destination                     Connected?     
      rac1:127.0.0.1                  rac2:192.168.2.102              failed         
    Result: TCP connectivity check failed for subnet "192.168.2.0"
    Check: Node connectivity of subnet "192.168.0.0"
    Result: Node connectivity passed for subnet "192.168.0.0" with node(s) rac2
    Check: TCP connectivity of subnet "192.168.0.0"
      Source                          Destination                     Connected?     
      rac1:127.0.0.1                  rac2:192.168.0.102              failed         
    Result: TCP connectivity check failed for subnet "192.168.0.0"
    Interfaces found on subnet "192.168.2.0" that are likely candidates for VIP are:
    rac2 eth0:192.168.2.102
    Interfaces found on subnet "192.168.0.0" that are likely candidates for a private interconnect are:
    rac2 eth1:192.168.0.102
    Result: Node connectivity check passed
    Check: Total memory
      Node Name     Available                 Required                  Comment  
      rac2          1.9642GB (2059580.0KB)    1.5GB (1572864.0KB)       passed   
    Result: Total memory check passed
    Check: Available memory
      Node Name     Available                 Required                  Comment  
      rac2          1.7729GB (1858984.0KB)    50MB (51200.0KB)          passed   
    Result: Available memory check passed
    Check: Swap space
      Node Name     Available                 Required                  Comment  
      rac2          3.9062GB (4095992.0KB)    2.9463GB (3089370.0KB)    passed   
    Result: Swap space check passed
    Check: Free disk space for "rac2:/tmp"
      Path              Node Name     Mount point   Available     Required      Comment    
      /tmp              rac2          /             1.0762GB      1GB           passed     
    Result: Free disk space check passed for "rac2:/tmp"
    Check: User existence for "oracle"
      Node Name     Status                    Comment                
      rac2          exists(1100)              passed                 
    Checking for multiple users with UID value 1100
    Result: Check for multiple users with UID value 1100 passed
    Result: User existence check passed for "oracle"
    Check: Group existence for "oinstall"
      Node Name     Status                    Comment                
      rac2          exists                    passed                 
    Result: Group existence check passed for "oinstall"
    Check: Group existence for "dba"
      Node Name     Status                    Comment                
      rac2          exists                    passed                 
    Result: Group existence check passed for "dba"
    Check: Membership of user "oracle" in group "oinstall" [as Primary]
      Node Name         User Exists   Group Exists  User in Group  Primary       Comment    
      rac2              yes           yes           yes           yes           passed     
    Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed
    Check: Membership of user "oracle" in group "dba"
      Node Name         User Exists   Group Exists  User in Group  Comment        
      rac2              yes           yes           yes           passed         
    Result: Membership check for user "oracle" in group "dba" passed
    Check: Run level
      Node Name     run level                 Required                  Comment  
      rac2          5                         3,5                       passed   
    Result: Run level check passed
    Check: Hard limits for "maximum open file descriptors"
      Node Name         Type          Available     Required      Comment        
      rac2              hard          65536         65536         passed         
    Result: Hard limits check passed for "maximum open file descriptors"
    Check: Soft limits for "maximum open file descriptors"
      Node Name         Type          Available     Required      Comment        
      rac2              soft          1024          1024          passed         
    Result: Soft limits check passed for "maximum open file descriptors"
    Check: Hard limits for "maximum user processes"
      Node Name         Type          Available     Required      Comment        
      rac2              hard          16384         16384         passed         
    Result: Hard limits check passed for "maximum user processes"
    Check: Soft limits for "maximum user processes"
      Node Name         Type          Available     Required      Comment        
      rac2              soft          2047          2047          passed         
    Result: Soft limits check passed for "maximum user processes"
    Check: System architecture
      Node Name     Available                 Required                  Comment  
      rac2          x86_64                    x86_64                    passed   
    Result: System architecture check passed
    Check: Kernel version
      Node Name     Available                 Required                  Comment  
      rac2          2.6.18-194.el5            2.6.18                    passed   
    Result: Kernel version check passed
    Check: Kernel parameter for "semmsl"
      Node Name     Configured                Required                  Comment  
      rac2          250                       250                       passed   
    Result: Kernel parameter check passed for "semmsl"
    Check: Kernel parameter for "semmns"
      Node Name     Configured                Required                  Comment  
      rac2          32000                     32000                     passed   
    Result: Kernel parameter check passed for "semmns"
    Check: Kernel parameter for "semopm"
      Node Name     Configured                Required                  Comment  
      rac2          100                       100                       passed   
    Result: Kernel parameter check passed for "semopm"
    Check: Kernel parameter for "semmni"
      Node Name     Configured                Required                  Comment  
      rac2          128                       128                       passed   
    Result: Kernel parameter check passed for "semmni"
    Check: Kernel parameter for "shmmax"
      Node Name     Configured                Required                  Comment  
      rac2          1054504960                536870912                 passed   
    Result: Kernel parameter check passed for "shmmax"
    Check: Kernel parameter for "shmmni"
      Node Name     Configured                Required                  Comment  
      rac2          4096                      4096                      passed   
    Result: Kernel parameter check passed for "shmmni"
    Check: Kernel parameter for "shmall"
      Node Name     Configured                Required                  Comment  
      rac2          2097152                   2097152                   passed   
    Result: Kernel parameter check passed for "shmall"
    Check: Kernel parameter for "file-max"
      Node Name     Configured                Required                  Comment  
      rac2          6815744                   6815744                   passed   
    Result: Kernel parameter check passed for "file-max"
    Check: Kernel parameter for "ip_local_port_range"
      Node Name     Configured                Required                  Comment  
      rac2          between 9000 & 65500      between 9000 & 65500      passed   
    Result: Kernel parameter check passed for "ip_local_port_range"
    Check: Kernel parameter for "rmem_default"
      Node Name     Configured                Required                  Comment  
      rac2          262144                    262144                    passed   
    Result: Kernel parameter check passed for "rmem_default"
    Check: Kernel parameter for "rmem_max"
      Node Name     Configured                Required                  Comment  
      rac2          4194304                   4194304                   passed   
    Result: Kernel parameter check passed for "rmem_max"
    Check: Kernel parameter for "wmem_default"
      Node Name     Configured                Required                  Comment  
      rac2          262144                    262144                    passed   
    Result: Kernel parameter check passed for "wmem_default"
    Check: Kernel parameter for "wmem_max"
      Node Name     Configured                Required                  Comment  
      rac2          1048586                   1048576                   passed   
    Result: Kernel parameter check passed for "wmem_max"
    Check: Kernel parameter for "aio-max-nr"
      Node Name     Configured                Required                  Comment  
      rac2          1048576                   1048576                   passed   
    Result: Kernel parameter check passed for "aio-max-nr"
    Check: Package existence for "make-3.81"
      Node Name     Available                 Required                  Comment  
      rac2          make-3.81-3.el5           make-3.81                 passed   
    Result: Package existence check passed for "make-3.81"
    Check: Package existence for "binutils-2.17.50.0.6"
      Node Name     Available                 Required                  Comment  
      rac2          binutils-2.17.50.0.6-14.el5  binutils-2.17.50.0.6      passed   
    Result: Package existence check passed for "binutils-2.17.50.0.6"
    Check: Package existence for "gcc-4.1.2"
      Node Name     Available                 Required                  Comment  
      rac2          gcc-4.1.2-48.el5          gcc-4.1.2                 passed   
    Result: Package existence check passed for "gcc-4.1.2"
    Check: Package existence for "libaio-0.3.106 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          libaio-0.3.106-5 (i386)   libaio-0.3.106 (i386)     passed   
    Result: Package existence check passed for "libaio-0.3.106 (i386)"
    Check: Package existence for "libaio-0.3.106 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          libaio-0.3.106-5 (x86_64)  libaio-0.3.106 (x86_64)   passed   
    Result: Package existence check passed for "libaio-0.3.106 (x86_64)"
    Check: Package existence for "glibc-2.5-24 (i686)"
      Node Name     Available                 Required                  Comment  
      rac2          glibc-2.5-49 (i686)       glibc-2.5-24 (i686)       passed   
    Result: Package existence check passed for "glibc-2.5-24 (i686)"
    Check: Package existence for "glibc-2.5-24 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          glibc-2.5-49 (x86_64)     glibc-2.5-24 (x86_64)     passed   
    Result: Package existence check passed for "glibc-2.5-24 (x86_64)"
    Check: Package existence for "compat-libstdc++-33-3.2.3 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          compat-libstdc++-33-3.2.3-61 (i386)  compat-libstdc++-33-3.2.3 (i386)  passed   
    Result: Package existence check passed for "compat-libstdc++-33-3.2.3 (i386)"
    Check: Package existence for "compat-libstdc++-33-3.2.3 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          compat-libstdc++-33-3.2.3-61 (x86_64)  compat-libstdc++-33-3.2.3 (x86_64)  passed   
    Result: Package existence check passed for "compat-libstdc++-33-3.2.3 (x86_64)"
    Check: Package existence for "elfutils-libelf-0.125 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.125 (x86_64)  passed   
    Result: Package existence check passed for "elfutils-libelf-0.125 (x86_64)"
    Check: Package existence for "elfutils-libelf-devel-0.125"
      Node Name     Available                 Required                  Comment  
      rac2          elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.125  passed   
    Result: Package existence check passed for "elfutils-libelf-devel-0.125"
    Check: Package existence for "glibc-common-2.5"
      Node Name     Available                 Required                  Comment  
      rac2          glibc-common-2.5-49       glibc-common-2.5          passed   
    Result: Package existence check passed for "glibc-common-2.5"
    Check: Package existence for "glibc-devel-2.5 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          glibc-devel-2.5-49 (i386)  glibc-devel-2.5 (i386)    passed   
    Result: Package existence check passed for "glibc-devel-2.5 (i386)"
    Check: Package existence for "glibc-devel-2.5 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          glibc-devel-2.5-49 (x86_64)  glibc-devel-2.5 (x86_64)  passed   
    Result: Package existence check passed for "glibc-devel-2.5 (x86_64)"
    Check: Package existence for "glibc-headers-2.5"
      Node Name     Available                 Required                  Comment  
      rac2          glibc-headers-2.5-49      glibc-headers-2.5         passed   
    Result: Package existence check passed for "glibc-headers-2.5"
    Check: Package existence for "gcc-c++-4.1.2"
      Node Name     Available                 Required                  Comment  
      rac2          gcc-c++-4.1.2-48.el5      gcc-c++-4.1.2             passed   
    Result: Package existence check passed for "gcc-c++-4.1.2"
    Check: Package existence for "libaio-devel-0.3.106 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          libaio-devel-0.3.106-5 (i386)  libaio-devel-0.3.106 (i386)  passed   
    Result: Package existence check passed for "libaio-devel-0.3.106 (i386)"
    Check: Package existence for "libaio-devel-0.3.106 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          libaio-devel-0.3.106-5 (x86_64)  libaio-devel-0.3.106 (x86_64)  passed   
    Result: Package existence check passed for "libaio-devel-0.3.106 (x86_64)"
    Check: Package existence for "libgcc-4.1.2 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          libgcc-4.1.2-48.el5 (i386)  libgcc-4.1.2 (i386)       passed   
    Result: Package existence check passed for "libgcc-4.1.2 (i386)"
    Check: Package existence for "libgcc-4.1.2 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          libgcc-4.1.2-48.el5 (x86_64)  libgcc-4.1.2 (x86_64)     passed   
    Result: Package existence check passed for "libgcc-4.1.2 (x86_64)"
    Check: Package existence for "libstdc++-4.1.2 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          libstdc++-4.1.2-48.el5 (i386)  libstdc++-4.1.2 (i386)    passed   
    Result: Package existence check passed for "libstdc++-4.1.2 (i386)"
    Check: Package existence for "libstdc++-4.1.2 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          libstdc++-4.1.2-48.el5 (x86_64)  libstdc++-4.1.2 (x86_64)  passed   
    Result: Package existence check passed for "libstdc++-4.1.2 (x86_64)"
    Check: Package existence for "libstdc++-devel-4.1.2 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          libstdc++-devel-4.1.2-48.el5 (x86_64)  libstdc++-devel-4.1.2 (x86_64)  passed   
    Result: Package existence check passed for "libstdc++-devel-4.1.2 (x86_64)"
    Check: Package existence for "sysstat-7.0.2"
      Node Name     Available                 Required                  Comment  
      rac2          sysstat-7.0.2-3.el5       sysstat-7.0.2             passed   
    Result: Package existence check passed for "sysstat-7.0.2"
    Check: Package existence for "unixODBC-2.2.11 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          unixODBC-2.2.11-7.1 (i386)  unixODBC-2.2.11 (i386)    passed   
    Result: Package existence check passed for "unixODBC-2.2.11 (i386)"
    Check: Package existence for "unixODBC-2.2.11 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          unixODBC-2.2.11-7.1 (x86_64)  unixODBC-2.2.11 (x86_64)  passed   
    Result: Package existence check passed for "unixODBC-2.2.11 (x86_64)"
    Check: Package existence for "unixODBC-devel-2.2.11 (i386)"
      Node Name     Available                 Required                  Comment  
      rac2          unixODBC-devel-2.2.11-7.1 (i386)  unixODBC-devel-2.2.11 (i386)  passed   
    Result: Package existence check passed for "unixODBC-devel-2.2.11 (i386)"
    Check: Package existence for "unixODBC-devel-2.2.11 (x86_64)"
      Node Name     Available                 Required                  Comment  
      rac2          unixODBC-devel-2.2.11-7.1 (x86_64)  unixODBC-devel-2.2.11 (x86_64)  passed   
    Result: Package existence check passed for "unixODBC-devel-2.2.11 (x86_64)"
    Check: Package existence for "ksh-20060214"
      Node Name     Available                 Required                  Comment  
      rac2          ksh-20100202-1.el5        ksh-20060214              passed   
    Result: Package existence check passed for "ksh-20060214"
    Checking for multiple users with UID value 0
    Result: Check for multiple users with UID value 0 passed
    Check: Current group ID
    Result: Current group ID check passed
    Checking Core file name pattern consistency...
    Core file name pattern consistency check passed.
    Checking to make sure user "oracle" is not in "root" group
      Node Name     Status                    Comment                
      rac2          does not exist            passed                 
    Result: User "oracle" is not part of "root" group. Check passed
    Check default user file creation mask
      Node Name     Available                 Required                  Comment  
      rac2          0022                      0022                      passed   
    Result: Default user file creation mask check passed
    Starting Clock synchronization checks using Network Time Protocol(NTP)...
    NTP Configuration file check started...
    Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes
    Result: Clock synchronization check using Network Time Protocol(NTP) passed
    Pre-check for cluster services setup was unsuccessful.
    Checks did not pass for the following node(s):
         rac1
    [oracle@rac1 bin]$ ssh rac2 "date;hostname"
    Wed Dec 15 19:59:58 CET 2010
    rac2.localdomain
    [oracle@rac1 bin]$ hostname
    rac1.localdomain
    [oracle@rac1 bin]$ uname -a
    Linux rac1.localdomain 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@rac1 bin]$ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1          rac1.localdomain rac1 localhost.localdomain localhost
    ::1          localhost6.localdomain6 localhost6
    #127.0.0.1       localhost.localdomain   localhost
    # Public
    192.168.2.101   rac1.localdomain        rac1
    192.168.2.102   rac2.localdomain        rac2
    # Private
    192.168.0.101   rac1-priv.localdomain   rac1-priv
    192.168.0.102   rac2-priv.localdomain   rac2-priv
    # Virtual
    192.168.2.111   rac1-vip.localdomain    rac1-vip
    192.168.2.112   rac2-vip.localdomain    rac2-vip
    # SCAN
    192.168.2.201   rac-scan.localdomain rac-scanthe same on RAC2.
    [oracle@rac1 ~]$ id oracle
    uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba)
    [oracle@rac2 ~]$ id oracle
    uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba)I'm reading this tutorial
    >
    http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVirtualBox.php
    >
    because i would like to install in a virtualbox environment.
    Cheers,
    Lain
    Edited by: Lain on 13-gen-2011 20.06

    Make sure you have ssh configured properly on both nodes.
    Do you have the Oracle Clusterware Installation 11g Release (whatever your platform is)?
    Read this section 2.12.3 Enabling SSH User Equivalency on Cluster Member Nodes
    Try this on rac1.
    ssh rac2 date
    Try this on rac2.
    ssh rac1 date
    If these don't return the date of the other host you haven't configured SSH properly.

Maybe you are looking for