Problem in accessing second database instance on same host (ORA-12514)

Hi,
I had a database ICMDB installed on my machine. After that i created a second database instance (Service name: BI_APPS) using DBCA on the same machine. Using NETCA i also created a new listener OracleOraDb11g_home1TNSListenerBI_APPS_LISTENER on port 1522 on my machine. Then i configured this listener to listen for connections to service BI_APPS by adding the following to my tnsnames.ora:
BI_APPS_LISTENER =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
Then i changed the port in my tns entry for BI_APPS to 1522 as follows:
BI_APPS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BI_APPS)
I then restarted the following services:
OracleOraDb11g_home1TNSListener
OracleServiceBIAPPS
OracleOraDb11g_home1TNSListenerBI_APPS_LISTENER
After this, when i try to access my first DB ICMDB via toad, the connection is successful. However, when i try to access the service BI_APPS i get the following error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
What am i doing wrong? Here is the content of my files:
TNSNAMES.ORA
# tnsnames.ora Network Configuration File: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
BI_APPS_LISTENER =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
BI_APPS =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = BI_APPS)
LISTENER_ICMDB =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1521))
ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
ICMDB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = icmdb)
SQLNET.ORA
# sqlnet.ora Network Configuration File: D:\app\Oracle\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)
LISTENER.ORA
# listener.ora Network Configuration File: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
BI_APPS_LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
ADR_BASE_BI_APPS_LISTENER = D:\app\Oracle
SID_LIST_BI_APPS_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\app\Oracle\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
Here is output of lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-DEC-2013 16:17:01
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date                12-DEC-2013 10:34:35
Uptime                    0 days 5 hr. 42 min. 26 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File         d:\app\oracle\diag\tnslsnr\ICMDEVDB\listener\alert\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ICMDEVDB)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.109)(PORT=1521)))
Services Summary...
Service "BIAPPSXDB" has 1 instance(s).
  Instance "biapps", status READY, has 1 handler(s) for this service...
Service "BI_APPS" has 1 instance(s).
  Instance "biapps", status READY, has 1 handler(s) for this service...
Service "icmdb" has 1 instance(s).
  Instance "icmdb", status READY, has 1 handler(s) for this service...
Service "icmdbXDB" has 1 instance(s).
  Instance "icmdb", status READY, has 1 handler(s) for this service...
The command completed successfully

Jimit wrote:
Hi Ed,
I understand your point, however whenever i have tried to use the same listener to access my second instance, this is the error i have always received:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
That does not indicate you need a second listener.
And, after deleting the listener.ora file ,if i try the the command lsnrctl start, i get the error:
ORA-12560: TNS:protocol adapter error
Hence i restored the files. What do i do?
I've never experienced a 12560 trying to start a listener.  I'll need to see if I can create a test system on Windows and try to recreate.  Will be a good subject for my blog, that has been too long with no new content.
Since this is windows, I'd first check that the Windows service for the listenr is started.
Whatever, multiple listeners is NOT the solution.

Similar Messages

  • RMAN restore database from another backup of different database in the same host

    Hi Experts,
    I have taken FULL Database Backup using RMAN , now I want to Restore and Recover the same database on different instance on Same Host.
    Could u suggest any document or Steps to achieve this task.....
    Thanks,
    Mouni.

    No Problem.
    Please check this :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BRADV420
    ORACLE-BASE - Duplicate a Database Using RMAN in Oracle Database 11g Release 2
    Ensure you follow what Mr. Hemant has mentioned.
    Regards
    Karan

  • Multiple dialog instances on same host for different System

    Dear Sir,
    I install two dialog instances on same host ,one for DEV one for QAS.
    First I install dialog instance for DEV and startup with no error.
    Second dialog instance for QAS install with success end ,but can not start dispatchers.
    Service
    sapmsDEV     3600/tcp     # SAP System Message Port
    sapmsQAS     3601/tcp     # SAP System Message Port
    sapdp01s  4701/tcp  # SAP System Dispatcher Security Port
    sapgw01s  4801/tcp    # SAP System Gateway Security Port
    sapdp00       3200/tcp     # SAP System Dispatcher Port
    sapdp00s  4700/tcp # SAP System Dispatcher Security Port
    sapgw00       3300/tcp # SAP System Gateway Central Instance Port
    sapgw00s  4800/tcp # SAP System Gateway Security Port
    Disp_dev
    ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 8716]
    ERROR => MsIAttachEx: NiBufConnect to sap-qas/sapmsQAS failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    ***LOG Q0L=> DpLoopInit, nomscon () [dpxxdisp.c   1549]
    Stderr
    D:\usr\sap\QAS\D01\work>ntscmgr start MSSQLSERVER -m sap-qas
    failure: StartService, NT ErrorMessage: An instance of the service is already running. StartService SUCCESS
    D:\usr\sap\QAS\D01\work>ntscmgr start SQLSERVERAGENT -m sap-qas
    failure: StartService, NT ErrorMessage: An instance of the service is already running. StartService SUCCESS
    It seem that first startup dialog instance already start MSSQLSERVER -m sap-dev and SQLSERVERAGENT -m sap-dev, so next instance can not start again ,and cause NICONN_REFUSED.
    Could someone help me?
    Thanks
    Regards,
    Matt

    It appears to be possible, at least in IDM 7.1
    The release notes and Installation guide reference a setting called waveset.serverId that you set in your application server startup script like so:
    -Dwaveset.serverId=Name
    This would allow each JVM to identify itself differently from any others running on the same physical server.
    I haven't tried this yet myself, so caveat emptor.
    Jason

  • How to divide SAPS when having two instances on same host

    Hello
    I wander how to divide SAPS when having two instances on same host. By looking at st06?
    Thank you in advance

    Yes SAPS is nothing but the CPU power used by the SAP systems. SO if you have 2 SAP systems stacked on the same server, check the CPU utilization over a period of 7 - 10 days, average out & that should give you a fair bit of idea.
    - Regards, Dibya

  • NSV0: Failed to connect to remote database orcl. Error is ORA-12514

    sGetting error on data guard broker configuration. redologs shiping properly, withot any problems.
    Database: 11gR2 , Linux 64-bit
    [root@redhat ~]# su - oracle
    [oracle@redhat ~]$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 18 17:39:07 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> connect /as sysdba
    Connected.
    SQL> connect sys/oracle@primarydb as sysdba
    Connected.
    SQL> connect sys/oracle@physicaldb as sysdba
    Connected.
    SQL>
    */etc/hosts file contents on all nodes*
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1     localhost.localdomain     localhost
    192.168.1.232     redhat          redhat
    192.168.1.234 rac1          rac1
    primary database (drcorcl.log)
    2010-06-18 17:41:39.972 02010001 1362743835 DMON: CTL_GET_STATUS forwarded to site physicaldb for processing
    2010-06-18 17:41:41.044 NSV1: Site physicaldb returned ORA-16664.
    2010-06-18 17:41:41.045 02010001 1362743821 DMON: Database physicaldb returned ORA-16664
    2010-06-18 17:41:41.045 02010001 1362743821 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743821
    2010-06-18 17:41:41.045 02010001 1362743821 DMON: CTL_GET_STATUS operation completed
    2010-06-18 17:41:41.050 01000000 1362743836 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.054 01010001 1362743837 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.058 01010001 1362743838 DMON: MON_PROPERTY operation completed
    2010-06-18 17:41:41.062 01010001 1362743839 DMON: CTL_GET_STATUS operation completed
    2010-06-18 17:41:56.045 NSV1: Site physicaldb returned ORA-16664.
    2010-06-18 17:41:56.045 02010001 1362743835 DMON: Database physicaldb returned ORA-16664
    2010-06-18 17:41:56.045 02010001 1362743835 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 1.1.1362743835
    2010-06-18 17:41:56.046 02010001 1362743835 DMON: CTL_GET_STATUS operation completed
    physical standby database (drcorcl.log)
    2010-06-17 00:41:30.410 drcx: could not find task req_id=1.1.1362743821 for PROBE.
    2010-06-17 00:41:45.411 drcx: could not find task req_id=1.1.1362743835 for PROBE.
    2010-06-17 00:42:00.546 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
    2010-06-17 00:42:00.547 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
    2010-06-17 00:42:00.547 DMON: Database orcl returned ORA-12514
    2010-06-17 00:42:00.547 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743840
    2010-06-17 00:42:15.414 drcx: could not find task req_id=1.1.1362743840 for PROBE.
    2010-06-17 00:43:15.548 NSV0: Failed to connect to remote database orcl. Error is ORA-12514
    2010-06-17 00:43:15.549 NSV0: Failed to send message to site orcl. Error code is ORA-12514.
    2010-06-17 00:43:15.549 DMON: Database orcl returned ORA-12514
    2010-06-17 00:43:15.549 for opcode = HEALTH_CHECK, phase = BEGIN, req_id = 1.1.1362743841
    Standby Lintener file contents
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac1)(PORT = 1521))
    ADR_BASE_LISTENER = /oradisk/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DNAME = physicaldb)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DNAME = physicaldb_DGMGRL)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = ORCL)
    Primary database Listener contents
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521))
    ADR_BASE_LISTENER = /oradisk/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DNAME = orcl)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    (SID_DESC =
    (GLOBAL_DNAME = orcl_DGMGRL)
    (ORACLE_HOME = /oradisk/oracle/product/11.2.0/db)
    (SID_NAME = orcl)
    TNSNAMES.ora on all nodes
    PRIMARYDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
    (CONNECT_DATA =(SID = orcl))
    LISTENER_PHYSICALDB =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521))
    PHYSICALDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.234)(PORT = 1521)) )
    (CONNECT_DATA =(SID = orcl))
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.232)(PORT = 1521)))
    (CONNECT_DATA =(SERVER = DEDICATED)(SID = orcl) )
    )

    Don't use the old syntax 'SID=...' in tnsnames.ora, use 'SERVICE_NAME=...' . Make sure 'SERVICE_NAME' is exactly the same returned by 'lsnrctl status' on both nodes.
    Primary and standby cannot talk to each other currently through the listener:
    ORA-16664: unable to receive the result from a database
    Cause: During execution of a command, a database in the Data Guard broker
    configuration failed to return a result.
    Action: Check Data Guard broker logs for the details of the failure. Fix any
    possible network problems and try the command again.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action: - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Werner

  • Problem in accessing the database through VPN

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.
    It would be really great if you could help me to resolve this issue.
    Thanks

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.Fix the VPN problem.
    Check the logfiles.
    For better advice provide any meaningful detail.
    If I do not poke myself in the eye, it does not hurt.
    Tell me to to stop feeling pain.

  • Database instance in different host, ECC 6.0 installation

    Hello All,
    i want to install ABAP distributed system (ECC 6.), unfortunately in step Database instance installation i got only one option  - local host name. I need to put database to other server...
    Does anybody has experience with distribiuted ECC 6.0 ABAP system installation? How can i distribute sap instance and DB instance to different servers (sapinst is not offer this option, only for java systems)?
    Thanks a lot.

    Thank you very much Michael,
    your advise resoved my problem, after using sapinst with parameter " DB host name" instalation of DB instance executed correctly. In default.pfl file i have now as SAPGLOBALNAME db host name.
    I am facing at the moment with other problem during db instalation:
    FCO-00011  The step doGrantServiceRights with step key
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.) in execution of a 'SyWinGetSecurityDescriptor' function, line (1296), with parameter (Error in getting security descriptor for 'MSSQLSERVER' NT service).
    Is it known problem to you? if so, how did you resolve it?
    Thanks a lot.

  • Two databases in the same host.

    Hi Group,
    I have a doupt, It's possible that two databases with the same name, live in the same host, if they have different OracleHomes, and the SO users who were installed with are different? eg.
    SO user: oraqas
    OracleHome1 : /qas/u01/app/oracle/product/9.2.0
    BD: prdsia01
    SO user: oracle
    OracleHome2: /u01/app/oracle/product/9.2.0
    BD: prdsia01
    If not, what do you recommend?
    Thanks a lot

    It's possible that two databases with the same name, live in the same host,
    if they have different OracleHomes, and the SO users who were installed with are different? what is "SO users"?
    what is "BD: prdsia01"
    Yes, two Oracle databases with same ORACLE_SID can reside on same system as same time.
    The only restriction is that only one instance can be online at a time.

  • Not able to configure database instance on target host in Grid Control

    I can see all database instances on a target in GridControl and when I tried to configure database instance, it fails with the following error.
    Error
    oracle.sysman.emSDK.emd.comm.CommException: java.net.UnknownHostException: <dbinstance name>
    Could somebody tell me how to troubleshoot this issue (like logs for more info for this error)
    thanks

    Hi
    I am also facing the same issue. My Grid is 10.2.0.5 version. With agentca I could able to see the database of this target on grid but their status show pending.
    When I try to addthem manually it give me below error.
    Error communicating with the agent. Exception message - oracle.sysman.emSDK.emd.comm.CommException: java.io.IOException.
    Thanks
    Rao

  • Multiple IDM instances on same host

    Can multiple Identity Manager app server instances be run on the same host, connecting to the same db? If so, how is this accomplished. From what I see Identity Manager instances attempt to register themselves using the host name. Is there a property in the properties file that can set a unique name?

    It appears to be possible, at least in IDM 7.1
    The release notes and Installation guide reference a setting called waveset.serverId that you set in your application server startup script like so:
    -Dwaveset.serverId=Name
    This would allow each JVM to identify itself differently from any others running on the same physical server.
    I haven't tried this yet myself, so caveat emptor.
    Jason

  • Central NetWeaver Installation and DB Instance on same host?

    HI all,
    Would like to ask a question about NetWeaver installation.
    If I choose central installation, means Central Service Instance, DB Instance and Central Instance will be on the same host, but can my DB, say SQL Server reside on separate host?
    If not, is it correct that I have to choose distributed installation? So if distributed installation, can I install Central Service instance and Central intance on one host, and DB instance and SQL Server on another host?
    Thanks,
    Kelvin

    Hi KL:
    You can get this answer directly from the Installation Guides.
    You can download the installation guides for NetWeaver under: https://service.sap.com/instguides
    Hope this helps!
    Regards,
    Federico G. Babelis
    NetWeaver Certified Consultant
    http://www.gazum.com

  • ASM and database instance sharing same home. Can i split them?

    Hi I am running on 10.2.0.1.0 in a 2 server RAC cluster on linux. ASM and db instance are sharing the same home.
    I now need to upgrade my ASM instance and clusterware to 11g, but just want to keep my db at 10g because of some compatability issues ( i will probably still need to upgrade the db to 10.2.0.5.0).
    Is there any way i can split my Oracle Home so that i now can upgrade my ASM home and keep my prod DB instance still at 10g?
    Thanks again. John
    Edited by: user11970859 on Jun 6, 2011 1:49 AM

    Hi,
    Is there any way i can split my Oracle Home so that i now can upgrade my ASM home and keep my prod DB instance still at 10g?Yes... no problem.
    See this notes on MOS:
    10g to 11g R1
    *How To Upgrade ASM from 10.2 to 11.1 (RAC)? [ID 736127.1]*
    or to 11g R2
    *ASM 11gR2: How To Upgrade An ASM Instance To Release 11gR2 (11.2.0.1.0)? [ID 950200.1]*
    Regards,
    Levi Pereira

  • Problem in accessing client database.

    hi
    I have created a application using MDW.I am getting the Client database created.but i donno how to access those tables on client machine by using command prompt.I just wanna see whether those tables had all the data.So plz tell me the Solution.
    Edited by: user10797477 on Jan 28, 2009 6:47 AM

    depends on the client platform
    for windows
    msql system/<user password>@polite:<username>_<application name>
    for windows mobile you need the msql executable (and libraries) from the SDK if it is not already there, and then just execute if and a GUI interface will appear to let you select the database and enter the passwords etc

  • How to install SSAS Cluster instance with Always On availability group(Standalone database instance) in same windows cluster servers

    We have requirement like to Install the SSAS as Cluster instance where SQL Server Database engine was installed with Always On availability group.Please help me to how configure it
    Currently we have following configuration in Current steup.
    Node1 and Node2 are in windows cluster
    Node1 has SQL Server Database engine Instance1 as Standalone
    Node2 has SQL Server Database engine Instance2 as Standalone
    Instance1 and Instance2 configured for Always On availability group with Listener.
    Now we have to steup SSAS instance with High availibilty. I know we have only option is to install cluster SSAS instance.
    Can some one provide information below.
    1. How to steup Cluster SSAS instance in this servers.
    2. Is this will have any dependancy on exisiting Listner name.
    3. Is this affects the availiblity groups, if SSAS instance failed over to another node.
    Thanks in Advance
    Sriram

    You will need to have SSAS installed as a clustered instance with shared storage. Refer to the whitepaper from this MSDN article
    How To Cluster SQL Server Analysis Services
    Availability Group is in it's own Role/Resource Group. When you create the clustered SSAS, it will create its own Role/Resource Group. This means that it will require its own virtual network name and virtual IP address and will not affect the existing Availability
    Group. You can also have it on the existing Availability Group if you want to. However, you need to decide if you want SSAS to failover with the Availability Group or not. Your design choices will depend on that decision.
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Error accessing mysql database from a remote host

    Hi all,
    I'm running the following PL/SQL script and encountered some errors. The MySQL server is hosted off campus by a hosting company. However, when I run the same script against a MySQL database server hosted on campus, the script works fine. Here's the error:
    ERROR at line 3:
    ORA-04052: error occurred when looking up remote object
    cmswhit_odbc13.mdl_user@RLTEST
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [MySQL][ODBC 5.1 Driver][mysqld-4.1.22-standard]SELECT command denied to user
    'cmswhit_odbc13'@'192.160.216.13' for table 'mdl_user'
    ORA-02063: preceding 2 lines from RLTEST
    Here's the script:
    sqlplus -s <<endofit
    $USERPASS
    set serveroutput on;
    DECLARE
    user_name varchar2(30);
    moo_user_name varchar2(300);
    routine VARCHAR2(40);
    cntr NUMBER(8);
    CURSOR read_saradap is
    select gobtpac_external_user
    from gobtpac
    where gobtpac_external_user in ('greenup','yfeng');
    CURSOR read_mdl_user is
    select "username" from "mdl_user"@rltest where "username" = user_name;
    -- E N D O F C U R S O R S --
    BEGIN
    dbms_output.enable(1000000000);
    -- STEP 1: Read through Banner
    cntr := 0;
    OPEN read_saradap;
    LOOP
    routine := 'Read applicant';
    -- Read an applicant record
    dbms_output.put_line('Reading Banner user');
    FETCH read_saradap INTO user_name;
    EXIT WHEN read_saradap%NOTFOUND;
    dbms_output.put_line('Read Banner username=' || user_name);
    cntr := cntr + 1;
    -- Read the Moodle user;
    routine := 'Read moodle user';
    OPEN read_mdl_user;
    FETCH read_mdl_user INTO moo_user_name;
    IF read_mdl_user%NOTFOUND THEN
    dbms_output.put_line('Moodle user not found');
    ELSE
    dbms_output.put_line('Read Moodle username=' || moo_user_name);
    END IF;
    CLOSE read_mdl_user;
    END LOOP;
    rollback;
    CLOSE read_saradap;
    dbms_output.put_line('Total processed: ' || cntr);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE);
    dbms_output.put_line(SQLERRM);
    dbms_output.put_line('Error user=' || user_name);
    dbms_output.put_line(routine);
    END;
    EXIT;
    endofit

    The error seems to be quite clear: the user 'cmswhit_odbc13'@'192.160.216.13' lacks the SELECT privilege on the 'mdl_user' table...
    Max
    http://oracleitalia.wordpress.com

Maybe you are looking for

  • The specified screen does not exist in the DLIB file

    Dear Experts, I have copied the program of VA01 to Zprogram and created ztransaction when I execute ztransaction it will goto first screen, after I type input and click enter I will get below message Screen zsapmv45a 4470 does not exist when I check

  • Feature request: Better handling of accents

    Hi everyone, Since the "Provide iTunes feedback" menu item in iTunes itself only allows you to request music from the iTMS, I'm going to post my feature request for iTunes here, and hope that Apple picks up on it. For most of the English-speaking wor

  • XML IDOC post to R/3 Via WAS - want to see error content with JavaScript

    Hi, I am posting XML IDOCs to our R/3 system via a webpage that I have built with JavaScript.  I am posting to the WAS, which is configured to read the XML IDOC with SAP's standard class handler CL_HTTP_IDOC_XML_REQUEST.  We are on basis 620 support

  • Save As Reference Movies for More than 1 file

    Hi, Okay, so I have like 25 AVI/MPG files that I want to save as MOV Referenced Files using Quicktime Pro. I know, I can do by opening 1 at a time and using Save As Option. However, the question is; Is there a script or automated way to do for all th

  • Can't open pdf. files something about patch package

    Can't open PDF files something about patch package verification.error.