Database link logs..

Hello,
I am not able to find the connection logs for the error in database link..
For eg i have two databases DB1 and DB2, i have created a database link in DB2 which connects to DB1.. Database link is working fine but sometimes i am getting "ORA-03113 - End of File On Communication Channel"
I am using the database link in one trigger..
I am not able to find this error in alert_log.. do anybody have any idea where can i find this error..?? in DB1 database or DB2 database and where would it be under bdump, udump or network log..???
Any help would be great
Thanks - HP

Ora_User_2 wrote:
Well but since this is an ORA error i believe it should be displayed somewhere in some log file even if it is from database link..
And some times we do get ORA-03113 error displayed in alert.log then why not in this case..What you are looking at is a hardware/OS/network level error captured at RDBMS level and presented to you in the form of an error.
This error message is generally accompanied by other messages.
Probably having an ON SERVERERROR trigger and capturing the entire error stack might prove helpful.

Similar Messages

  • Create private database link

    Hi,
    I am currently working on a 92080 database on HPUX RISC platform.
    I have a question regarding DB link.
    There is already a public database link. I want to make it private since our organaization doesnt allow public database link.
    OWNER                DB_LINK                        USERNAME             HOST                           CREATED
    PUBLIC               DW.EADV.NA.JNJ.COM             GTWYCOMMAPP          HCSOP17.HCSPROD2.RAR.NCSUS.JNJ 05-APR-06
                                                                             .COM
    PUBLIC               EDIDB.EADV.NA.JNJ.COM          USER4DBLNK           HCSOP12                        12-APR-06
    PUBLIC               RAM_MART.EADV.NA.JNJ.COM       GTWYCOMMAPP          HCSOP30.hcsprod2.rar.ncsus.jnj 04-NOV-05
                                                                             .comMy question is -> If I want to create a private database link, should we login to each application schema and create the same?
    Or can we create a private database link logging in as SYS/SYSTEM. Please let me know
    Thanks!

    You can create database link in one schema and after that you can create public synonym ,therefore all users can use this db link.
    CREATE  DATABASE LINK DBN
       CONNECT TO SMART IDENTIFIED BY sm
       USING 'SB222'
    /You can create objects like view according this dblink and create publik synonym for this
    Edited by: Chinar on Dec 3, 2010 8:39 AM

  • HELP! FOR LOOP TO SCROLL THROUGH TABLE AND CREATE DATABASE LINK

    Hi,
    Here's the scenario, not much of a PL programmer, just basic SQL so really need some help people!
    I have 2 tables. 1 contains list of DB's and the other contains rules to follow.
    I need to create a loop that goes through the table containing the DB's and on each row a DB link is created (Only 1 link allowed!)
    Once created, the schema currently logged in with also has an account on the linked DB in order to run scripts- The scripts are stored centrally hence the requirement for the link to the target DB.
    There are numerous scripts that need to be executed and can all be called from 1 script, once executed the loop exists and the database link needs to be dropped.
    Once dropped, the first loop continues, creating a DB link for the next DB listed in the table (and all the scripts are fired again)
    This continues against all the DB's listed in the table.

    Hi BlueShadow,
    Thanks again for the response, you've hit the nail on the head. SQL scripts on a unix server, a loop goes through a table 1 at a time. Each row gets a link created and then all the scripts stored on the server are executed against the db linked to. So I'm assuming this is a loop within a loop.
    1 loop to go through the table to create the link and then another loop within once connected to execute all the scripts against the connected DB. Once the scripts are run, the loop exits and moves onto the next server and so on until all the servers have the scripts are run.
    It's PL/SQL scripts we're after and not shell scripts as this would free us from the OS constraints.
    We have to drop the links due to security. Any idea on o

  • How to Create Public database link in oracle 9i?

    Friends,
    OS: RHEL AS 3
    DB: 9iR2
    database name 1 = nubul
    database name 2 = test
    in the 'nubul' database server using system user.
    i created a database link to connect the 'test' database
    sql> create public database link test using 'test';
    database link created.
    then i logged in as normal user....
    sql> select count(*) from employee@test
    Error at line 1:
    ORA-12154: TNS: could not resolve service name
    where i am making mistake?
    i gave the linkname as my remote database name.
    am i have to make any entry in the tnsnames.ora?
    thanks & regards

    You have to remember that when you access a dblink, the database where the link is defined is acting as a client to the database to which the link points ... exactly the same as if you you were using sqlplus on the machine hosting the db where the link is defined. In other words, given:
    Host 'Host-src', with database 'db-src', with a dblink 'lk_target'
    Host 'host-trgt', with database 'db-trgt'
    When you connect to db-src and access lk-target, db-src is now acting as a client to db-trgt. Exactly as if you had opened sqlplus on host-src and connected directly to db-trgt. So, given the above scenario
    host-src$> sqlplus scott/tiger@db-src
    sql> select * from emp@lk_target;when you execute that SELECT to the link, the same tns considerations are in effect as if you had
    host-src$> sqlplus scott/tiger@db-trgtThe same tnsnames.ora entry, on the source machine, is required for both.

  • Database link from Oracle to MySQL

    I tried and googled an tried again...but I can't get this to work. So if you can spare a moment, please help me out (or try to ;-) ).
    Environment:
    The Oracle Developer Days Virtual Box image, so that's 11gR2 EE on OEL. MySQL 5.1.51-community + mysql-connector-odbc-5.1.7-0.i386.rpm
    1. Created a database called test in MySQL, with a user "oracle" and a password "123".
    2. Created the file /home/oracle/.odbc.ini with as contents:
    [ODBC Data Sources]
    myodbc5 = MySQL ODBC 5.1.7 Driver DSN
    [myodbc5]
    DRIVER      = /usr/lib/libmyodbc5.so
    DESCRIPTION = MySQL ODBC 5.1.7 Driver DSN
    SERVER      = 127.0.0.1
    PORT        = 3306
    USER        = oracle
    PASSWORD    = 123
    DATABASE    = test
    CHARSET     = latin13. Created the file /home/oracle/app/oracle/product/11.2.0/dbhome_1/hs/admin/initmyodbc5.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=myodbc5
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_SHAREABLE_NAME=/usr/lib/libmyodbc5.so
    HS_LANGUAGE=AMERICAN.AMERICA.WE8ISO8859P15
    HS_FDS_SUPPORT_STATISTICS=FALSE
    # HS_NLS_NCHAR=AL32UTF8
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    set ODBCINSTINI=/home/oracle/.odbc.ini
    set LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/hs/lib:/usr/lib
    # Environment variables required for the non-Oracle system
    set HOME=/home/oracle4. Added to tnsnames.ora :
    dg4odbc =
      (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA = (SID=myodbc5))
        (HS=OK)
      )5. Added to listener.ora (and restarted it) :
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME = myodbc5)
          (PROGRAM = dg4odbc)
          (ENVS ="LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/hs/lib:/usr/lib:/lib")
      )6. Ran some tests:
    a. isql dg4odbc -> Connected!
    b. tnsping dg4odbc -> OK
    c. lsnrctl status -> Service "myodbc5" has 1 instance(s). Instance "myodbc5", status UNKNOWN, has 1 handler(s) for this service...
    d. in SQLPLUS (as system): create public database link mysql connect to "oracle" identified by "123" using 'dg4odbc';
    e. select * from test@mysql ("test" is a simple table I created in the MySQL DB) returns
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from MYSQL
    When I look in the trace file (in $ORACLE_HOME/hs/log) I see at the bottom of the file:
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib/libmyodbc5.so"
    Entered hgolofns at 2010/11/02-14:10:54
    hoaerr:28500
    Exiting hgolofns at 2010/11/02-14:10:54
    Failed to load ODBC library symbol: /usr/lib/libmyodbc5.so(SQLAllocHandle)
    Exiting hgolofn, rc=28500 at 2010/11/02-14:10:54
    Exiting hgoinit, rc=28500 with error ptr FILE:hgoinit.c LINE:337 FUNCTION:hgoinit() ID:Loading ODBC aray of function ptrs
    Entered hgoexit
    HS Gateway:  NULL connection context at exit
    Exiting hgoexit, rc=0 with error ptr FILE:hgoexit.c LINE:108 FUNCTION:hgoexit() ID:Connection contextAfter Googling around I found out that all files are 32-bit (was on issue somewhere else)...and now I am stuck!
    Any ideas, tips etc on how to proceed???
    TIA
    Roel

    The ODBC Trace contains:
    [ODBC][3331][1288788738.867244][__handles.c][459]
                    Exit:[SQL_SUCCESS]
                            Environment = 0x92b0d08
    [ODBC][3331][1288788738.869179][SQLSetEnvAttr.c][189]
                    Entry:
                            Environment = 0x92b0d08
                            Attribute = SQL_ATTR_ODBC_VERSION
                            Value = 0x3
                            StrLen = -6
    [ODBC][3331][1288788738.869204][SQLSetEnvAttr.c][356]
                    Exit:[SQL_SUCCESS]
    [ODBC][3331][1288788738.879396][SQLAllocHandle.c][375]
                    Entry:
                            Handle Type = 2
                            Input Handle = 0x92b0d08
    [ODBC][3331][1288788738.879422][SQLAllocHandle.c][493]
                    Exit:[SQL_SUCCESS]
                            Output Handle = 0x92c2940
    [ODBC][3331][1288788738.879449][SQLSetConnectAttrW.c][332]
                    Entry:
                            Connection = 0x92c2940
                            Attribute = SQL_ATTR_AUTOCOMMIT
                            Value = (nil)
                            StrLen = -5
    [ODBC][3331][1288788738.879467][SQLSetConnectAttrW.c][616]
                    Exit:[SQL_SUCCESS]
    [ODBC][3331][1288788738.879694][SQLDriverConnectW.c][290]
                    Entry:
                            Connection = 0x92c2940
                            Window Hdl = (nil)
                            Str In = [DNdm;I=eoPDdm][length = 26]
                            Str Out = 0x92b1cf8
                            Str Out Max = 1024
                            Str Out Ptr = 0xbfe66270
                            Completion = 0
    [ODBC][3331][1288788738.879718][SQLDriverConnectW.c][500]Error: IM002
    [ODBC][3331][1288788738.879810][SQLGetDiagRecW.c][508]
                    Entry:
                            Connection = 0x92c2940
                            Rec Number = 1
                            SQLState = 0xbfe65f70
                            Native = 0xbfe65f90
                            Message Text = 0xbfe65d38her
                            Buffer Length = 510
                            Text Len Ptr = 0xbfe65fa8
    [ODBC][3331][1288788738.879835][SQLGetDiagRecW.c][550]
                    Exit:[SQL_SUCCESS]
                            SQLState = IM002
                            Native = 0xbfe65f90 -> 0
                            Message Text = [[unixODBC][Driver Manager]Data source name not found, and no default driver specified]
    [ODBC][3331][1288788738.879865][SQLGetDiagRecW.c][508]
                    Entry:
                            Connection = 0x92c2940
                            Rec Number = 2
                            SQLState = 0xbfe65f70
                            Native = 0xbfe65f90
                            Message Text = 0xbfe65d38
                            Buffer Length = 510
                            Text Len Ptr = 0xbfe65fa8
    [ODBC][3331][1288788738.879882][SQLGetDiagRecW.c][550]
                    Exit:[SQL_NO_DATA]
    [ODBC][3331][1288788738.879942][SQLDisconnect.c][208]
                    Entry:
                            Connection = 0x92c2940
    [ODBC][3331][1288788738.879958][SQLDisconnect.c][237]Error: 08003
    [ODBC][3331][1288788738.880005][SQLFreeHandle.c][286]
                    Entry:
                            Handle Type = 2
                            Input Handle = 0x92c2940
    [ODBC][3331][1288788738.880023][SQLFreeHandle.c][337]
                    Exit:[SQL_SUCCESS]
    [ODBC][3331][1288788738.903716][SQLFreeHandle.c][219]
                    Entry:
                            Handle Type = 1
                            Input Handle = 0x92b0d08So there is an error (IM002) in there, saying it can't find the Data Source Name..
    Some addtional tests I ran:
    dltest /usr/local/lib/libodbc.so returns SUCCESS: Loaded /usr/local/lib/libodbc.so
    ldd /usr/local/lib/libodbc.so returns
    linux-gate.so.1 => (0x00a44000)
    libdl.so.2 => /lib/libdl.so.2 (0x00a22000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00110000)
    libc.so.6 => /lib/libc.so.6 (0x005b1000)
    /lib/ld-linux.so.2 (0x00736000)
    So it can find and load the necessary libraries (afaik)..
    So any ideas left??

  • ORA -18808;Cannot find OUTLN schema using Database Link

    Hi,
    I have to access a database using a database link. When I try to do so I get the message:
    ORA -18808:cannot find OUTLN schema
    The OUTLN schema really does'nt exist at the target database, but I don't get the message when connecting with the same user outside the database link.
    I am trying to avoid to ask them to recreate the schema, since I am the only one that needs the database link working.
    Is there any way I can access the database with the database link without messing with the target database?
    Thanks in advance for any help.

    The error number returned by that error does not seem to be correct. Below is the correct error number:
    ORA-18008 cannot find OUTLN schema
    Cause: The database creation script that creates this schema must not have been executed.
    Action: Review the log files to see what happened when the database was created.
    How is the DB link defined to connect as?

  • Using database link via dbms_scheduler

    Hello out there,
    I have a problem calling a stored procedure via dbms_scheduler that pulls some rows over a public database link.
    The setup is the following:
    create public database link mediabase using 'mediabase';
    create or replace procedure hole_kurse as
    mdatum date;
    begin
       select max(datum) into mdatum
       from dt_wechselkurs;
       insert into dt_wechselkurs l
          (waehrung,
           datum,
           wechselkurs)
       (select
           r.waehrung,
           r.datum,
           r.wechselkurs
        from
           dt_wechselkurs@mediabase r
        where
           datum>mdatum);
        commit;
    end hole_kurse;
    begin
       dbms_scheduler.create_job(job_name          =>  'wechselkurse',
                                 job_type          =>  'STORED_PROCEDURE',
                                 job_action        =>  'hole_kurse',
                                 start_date        =>  sysdate,
                                 repeat_interval   =>  'FREQ=DAILY; BYHOUR=7; BYMINUTE=0; BYSECOND=0');
       dbms_scheduler.enable(name => 'wechselkurse');
       commit;
    end;
    /I can access the database link in SQL and I can call the procedure hole_kurse from SQL without any errors. But the job fails writing "ORA-01017: invalid username/password; logon denied" into alert.log. I also tried using dbms_job which used to work with Oracle 10g but now fails with the same error.
    My Oracle version is 11.2.0.2 64bit on Window Server 2008R2.
    So what do I have to change that my job will run?
    Many thanks in advance,
    dhalek

    I'm not completely sure, but here is a possibility:
    The [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_5005.htm#i2061505]docs have this to say:
    >
    If you specify CONNECT TO user IDENTIFIED BY password, then the database link connects with the specified user and password.
    If you specify CONNECT TO CURRENT_USER, then the database link connects with the user in effect based on the scope in which the link is used.
    If you omit both of those clauses, then the database link connects to the remote database as the locally connected user.
    >
    Your dblink is like this:
    create public database link mediabase using 'mediabase';That is the third case described, so the link connects as "the locally connected user", which in the scheduler session is probably not your user.
    You may try it with the second case described in the docs:
    create public database link mediabase CONNECT TO CURRENT_USER using 'mediabase';If I understand the docs correct, then within the procedure the dblink will use the schema that the procedure is owned by (unless the procedure is using invoker-rights, then it will be the invoking user.)
    It is just a guess, but you can try it and see ;-)

  • Error while creating materialized view which using database link

    Helo!
    I'm getting error "ORA-00942: table or view does not exist" when I want to create materialized view.
    Details:
    1. On destination database I create a database link:
    CREATE DATABASE LINK SDATABASE
    CONNECT TO MYUSER
    IDENTIFIED BY MYUSERPASS
    USING 'ORCL';
    => Command "SELECT * FROM TABLE1@SDATABASE" returns data normally!
    2. On source database I create MATERIALIZED VIEW LOG:
    CREATE MATERIALIZED VIEW LOG
    ON TABLE1
    WITH PRIMARY KEY
    INCLUDING NEW VALUES;
    3. Now, when I want to create MATERIALIZED VIEW on destination database:
    CREATE MATERIALIZED VIEW TABLE1
    REFRESH FAST
    START WITH SYSDATE
    NEXT SYSDATE + 1/1440
    WITH PRIMARY KEY
    AS SELECT * FROM TABLE1@SDATABASE;
    ...I get error "ORA-00942: table or view does not exist"!
    How is that possible if command "SELECT * FROM TABLE1@SDATABASE" returns data normally?
    Thanks,
    Voranc

    And, I'm using Oracle 10g.
    Voranc

  • Database link to SQL Server Init error

    Hi all,
    i´m tryng to create a dblink between Oracle 10.2.0 in a RHEL4 and a SQL Server.
    I can connect using isql but when i try using sqlplus i obtain this error:
    SQL> CREATE DATABASE LINK dbl
    CONNECT TO "user"
    IDENTIFIED BY "pwd"
    USING 'hsodbc'; 2 3 4
    Enlace con la base de datos creado.
    SQL> SELECT * FROM Table_1@dbl;
    SELECT * FROM Table_1@dbl
    ERROR en línea 1:
    ORA-28545: error diagnosticado por Net8 al conectar a un agente (error in Net8 while connecting an agent)
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: 2 lines precediendo a DBL
    This is the error explanantion in Oracle Docs:
    I think the problem is the ini file inithsodbc.ora.
    inithsodbc.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    # AAB - Parametros para asociar un agente ODBC al HS
    HS_FDS_CONNECT_INFO = MSQLS
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_SHAREABLE_NAME =/usr/local/freetds/lib/libtdsodbc.so
    HS_AUTOREGISTER = true
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/.odbc.ini
    listener.ora
    # listener.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = STA2)
    (ORACLE_HOME = /app/oracle/oracle/product/10.2.0/db_1)
         (SID_DESC = (SID_NAME=hsodbc)
    (ORACLE_HOME=/app/oracle/oracle/product/10.2.0/db_1)
    (PROGRAM=hsodbc)
                             (ENVS=LD_LIBRARY_PATH=/app/oracle/oracle/product/10.2.0/db_1/lib:/usr/local/lib)
    LISTENER =
         (DESCRIPTION =
         (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /app/oracle/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DEVSTA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = devSTA)
    STA2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = STA2)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    STA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nemesisgr2.hi.inet)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = STA)
    #AAB - Descripcion de servicio para conectar con SQLServer
    HSODBC = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)
    (HOST=nemesisgr2.hi.inet)
    (PORT=1521)
    (CONNECT_DATA = (SID=hsodbc)
    (HS = OK)
    ODBC Files
    odbc.ini
    [ODBC Data Sources]
    MSQLS = Microsoft SQL Server
    [MSQLS]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    Description = Microsoft SQL Server
    Trace = No
    Servername = sqlserver
    Database = master
    [Default]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    odbcinst.ini
    [PostgreSQL]
    Description          = ODBC for PostgreSQL
    Driver          = /usr/lib/libodbcpsql.so
    Setup          = /usr/lib/libodbcpsqlS.so
    FileUsage          = 1
    [MSQLSDRIVER]
    Description          = Driver for MS SQL Server
    Driver          = /usr/local/freetds/lib/libtdsodbc.so
    Setup          = /usr/lib64/libtdsS.so
    FileUsage          = 1
    UsageCount          = 5
    freetds.conf
    # $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory.
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf".
    # Global settings are overridden by those in a database
    # server specific section
    [global]
    # TDS protocol version
    ;     tds version = 4.2
         # Whether to write a TDSDUMP file for diagnostic purposes
         # (setting this to /tmp is insecure on a multi-user system)
    ;     dump file = /tmp/freetds.log
    ;     debug flags = 0xffff
         # Command and connection timeouts
    ;     timeout = 10
    ;     connect timeout = 10
         # If you get out-of-memory errors, it may mean that your client
         # is trying to allocate a huge buffer for a TEXT field.
         # Try setting 'text size' to a more reasonable limit
         text size = 64512
    # A typical Sybase server
    [egServer50]
         host = symachine.domain.com
         port = 5000
         tds version = 5.0
    # A typical Microsoft server
    [egServer70]
         host = ntmachine.domain.com
         port = 1433
         tds version = 7.0
    # Test MS SQl Server
    [sqlserver]
         Database = master
         host = pruebas.hi.inet
         port = 1433
         tds version = 7.0
    Any ideas??
    Thanks in advance.
    Alex

    I have changed the inithsodbc.ora file including:
    HS_FDS_SHAREABLE_NAME =/usr/lib/libodbc.so (I have ODBC installed)
    Here you are the other information:
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:29:52
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Bienvenido a LSNRCTL, escriba "help" para obtener información.
    LSNRCTL> status
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=nemesisgr2.hi.inet)(PORT=1521)))
    ESTADO del LISTENER
    Alias LISTENER
    Versión TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Fecha de Inicio 22-OCT-2008 19:31:34
    Tiempo Actividad 0 días 13 hr. 58 min. 29 seg.
    Nivel de Rastreo off
    Seguridad ON: Local OS Authentication
    SNMP OFF
    Parámetros del Listener /app/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log del Listener /app/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Recibiendo Resumen de Puntos Finales...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=nemesisgr2)(PORT=1521)))
    Resumen de Servicios...
    El servicio "STA" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2" tiene 2 instancia(s).
    La instancia "STA2", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2XDB" tiene 1 instancia(s).
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA2_XPT" tiene 1 instancia(s).
    La instancia "STA2", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STAXDB" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "STA_XPT" tiene 1 instancia(s).
    La instancia "STA", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "hsodbc" tiene 1 instancia(s).
    La instancia "hsodbc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente
    LSNRCTL>
    hsodbc
    There is no output executing this command.
    [oracle@nemesisgr2 ~]$ /app/oracle/oracle/product/10.2.0/db_1/bin/hsodbc
    [oracle@nemesisgr2 ~]$
    tnsping hsodbc
    [oracle@nemesisgr2 ~]$ tnsping hsodbc
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 23-OCT-2008 09:35:58
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Archivos de parámetros utilizados:
    /app/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Adaptador TNSNAMES utilizado para resolver el alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp) (HOST=nemesisgr2.hi.inet) (PORT=1521)) (CONNECT_DATA = (SID=hsodbc)) (HS = OK))
    Realizado correctamente (40 mseg)
    Rgds,
    Alex

  • Change of a database link in OWB

    I have a good suggestion to change a a database link when a server is moved to another location (in that case the database link of the source module has to be changed)
    In OWB 9.0.2 it's not impossible to delete a database link in OWB, so you have to do it manually
    (in 9.0.4 it should be possible, but this version is also not easy to use).
    - Start SQL Plus and log in as the schema on which the OWB repository is created (e.g. OWB).
    - Drop the database link ('drop database link <dblink name>')
    - Create a new database link in the same schema with the new parameters, e.g:
    CREATE DATABASE LINK "<dblink name>"
    CONNECT TO "<...>" IDENTIFIED BY "<...>"
    USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = <hostname>) (PORT = 1521))) (CONNECT_DATA = (SID = <sid> )))'
    Done!
    No stupid errors in OWB when you create the database link in OWB itself.
    Regards,
    Maurice
    ;

    SQL> create view test_view as select dummy from [email protected]
    2 ;
    View created.
    SQL> select dummy from test_view;
    D
    X
    Execution Plan
    0 SELECT STATEMENT (REMOTE) Optimizer=CHOOSE
    1 0 TABLE ACCESS (FULL) OF 'DUAL' FIRST9.XXXX.COM
    Statistics
    7 recursive calls
    4 db block gets
    2 consistent gets
    0 physical reads
    212 redo size
    363 bytes sent via SQL*Net to client
    425 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    NOW WE PULL OUT THE NETWORK CABLE connecting the two servers.
    SQL> select dummy from test_view;
    select dummy from test_view
    ERROR at line 1:
    ORA-02068: following severe error from FIRST9.XXXX.COM
    ORA-03113: end-of-file on communication channel
    So all you have to do is to test for the communications error.

  • Database link with current_user

    I'm logged on database EMSDB.D710.DE and created a database link to EMSDB.D999.DE with current_user(...same user, same credentials I'm logged in). When I tried to use that created link I get the errorcode:"ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt". What I don't understand is, why I can connect to EMSDB.D999.DE --- but not access to the same database with a database link???
    SELECT     'EMSDB.D999.DE'               REMOTE_DB   --NAME OF DATABASE 
    FROM DUAL;
    VARIABLE VAR_REMOTE_DB VARCHAR2(15);
    BEGIN
        :VAR_REMOTE_DB := '&REMOTE_DB';
    END;
    SELECT  :VAR_REMOTE_DB                REMOTE_DB    
    FROM DUAL;
    CREATE DATABASE LINK &REMOTE_DB CONNECT TO CURRENT_USER USING '&REMOTE_DB' ;
    SELECT TABLE_NAME FROM ALL_TABLES@&REMOTE_DB;output
    SQL> @test
    REMOTE_DB
    EMSDB.D999.DE
    REMOTE_DB
    EMSDB.D999.DE
    SELECT TABLE_NAME FROM [email protected]
    FEHLER in Zeile 1:
    ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt
    SQL>Edited by: user5116754 on 22.02.2011 04:33

    user5116754 wrote:
    Thank you, John...but should it be possible for me to create this database link then???
    As I said, if you are not a global user according to Oracle, you would need to create a database link supplying the username and password of the user at the remote database that you want to use. Something like:
    CREATE DATABASE LINK EMSDB.D999.DE
    CONNECT TO username IDENTIFIED BY password
    USING 'EMSDB.D999.DE';
    How to spy out, what kind of user (GLOBAL...) I am?Log into the local database and do:
    SELECT external_name
    FROM user_uses;If that return null, then you are not a global user, if it returns a value, you are a global user in that database. Log into the remote database (whatever is identified by emsdb.d999.de) and do the same thing. If the external names on both databases are not null and have the same value, then you are a global user on both databases, and the current_user should work, otherwise you are ethe not a global user on one or both databases, or you are a different global user on the two databases.
    John

  • Database link failure.

    Using the grouper account, I have a database link defined as follows:
    CREATE PUBLIC DATABASE LINK parent_link
    CONNECT TO parent IDENTIFIED BY "password"
    USING 'rem1';
    ... and several synonyms, one of which is defined as follows:
    CREATE PUBLIC SYNONYM valid_fishery FOR parent.valid_fishery@parent_link;
    I am able to log in as parent in SQL Plus and Select from valid_fishery.
    But when logged in as grouper, I could not Select from valid_fishery, using either method of access:
    Referenceing the table name: Select * from parent.valid_fishery@parent_link;
    Referenceing the synonym: Select * from valid_fishery;
    I get the message:
    ORA-01017: invalid username/password; logon denied.
    ORA-02063: preceding line from PARENT_LINK
    This message is obviously wrong because I logged in through SQL Plus with the exact same username/password.
    Clearly, something is wrong with the link, but what could it be?
    Edited by: Prohan on Sep 23, 2009 9:33 AM

    Proham,
    I have seen various issues when going downward across database links (from a higher version of database, to a lower version of database). This has been probablematic over the years in various versions and with different commands that are typically fixed.
    Sometimes, in the past, I have seen incorrect errors raised over db_link issues. I believe I even recall selecting from 'dual' returned an error, or when running certain commands using a procedure or package on the remote database.
    First thing I'd ask to check (even though it does not seem related), is to ensure either grouper, (or public) have select access to 'parent's' tables.
    Does grouper have an account in the remote database? This shouldn't matter actually since you created the link to connect to through parent.

  • I have a problem when update tables with a database link (APEX)

    Hi, I search answers for my problem and I not found a solution. My problem start when I open page with database link statement in APEX. I drop tables and execute this for update the tables in APEX.
    EXECUTE IMMEDIATE 'CREATE TABLE XXXXXXX
    AS
    SELECT A1,A2,A3
    FROM AAA@BBB';
    I use Mozilla Firefox and isn't always updated the tables because it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    In the explorer always show a window only the text "IBMPC/WIN_NT-8.1.0"...
    What is the solution for my problem? I need update this tables.
    Thanks. John.

    It's easy. It doesn't work a database link, on apex, with a pl/sql code or store procedure.
    I saw that many people had the same problem but I don't see a solution.
    As I put up, I want to remove my tables on APEX and copy the table of my Oracle database with the update dates.
    The posts are from the same problem as my English is very bad, it got to help explain the problem.
    I have a page with a pl/sql code. This code in Oracle is correctly.
    For example, with this code I update the table PRUEBAS with the data of TABLEX.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX';
    END;
    But, in this code, I have the problem.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX@DB_LINK';
    END;
    I sometimes get an error. Sometimes it works fine, but half of the tries Apex returns "IBMPC/WIN_NT-8.1.0" in the browser and I am not using an IBM PC or Win NT...
    And i read that In the alert_xe.log file there are a error of core dump... ... :S or that the application return corrupt headers.... Is a problem of versions?
    I used a synonym and I have the same problem.      
    Even if I run the code on SQL COMMANDS (SQL WORKSHOP) it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    The problem is in Mozilla Firefox and in IE.
    I have the OracleXE 10g (Application Express 3.0.1.00.08).
    And the question is.. ... ... ... ... What is the solution? :)
    Thanks.
    John.

  • Errors in Database Alert Log... Please Help

    Hi All,
    This database is on Oracle 8i but I found errors in the alert Log.
    These errors are relating to archiving.
    Please take a look at this file to see the details;
    http://us.f13.yahoofs.com/bc/47aff3ab_a145/bc/My+Documents/Database+Alert+Log.LOG?bfUw9sHBkd_LbjY0
    ARC0: Beginning to archive log# 11 seq# 301
    Wed Feb 13 14:57:45 2008
    ARC0: Completed archiving log# 11 seq# 301
    Wed Feb 13 15:46:26 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03852.TRC:
    Wed Feb 13 15:46:26 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03208.TRC:
    Wed Feb 13 15:46:30 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03340.TRC:
    Wed Feb 13 15:46:30 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA00784.TRC:
    Wed Feb 13 15:46:31 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03748.TRC:
    Wed Feb 13 15:46:32 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA01228.TRC:
    Wed Feb 13 16:18:57 2008
    Thread 1 advanced to log sequence 303
    Current log# 13 seq# 303 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO13.LOG
    Wed Feb 13 16:18:57 2008
    ARC2: Beginning to archive log# 12 seq# 302
    Wed Feb 13 16:19:25 2008
    ARC2: Completed archiving log# 12 seq# 302
    Wed Feb 13 18:40:13 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03872.TRC:
    Please help out. What is exactly the cause of this error and how can I avoid it next time from occuring.

    >> Please paste the output of E:\Oracle\admin\MUKREC\udump\ORA03872.TRC
    Click on the link below to get the output of the ORA03872.TRC trace file
    http://us.f13.yahoofs.com/bc/47aff3ab_a145/bc/My+Documents/ORA03872.TRC?bfMq_sHBSRis64KA
    >> and last 100 lines of alert log
    the last 100 lines of the alert log are here under;
    Wed Feb 13 11:50:27 2008
    Thread 1 advanced to log sequence 296
    Current log# 13 seq# 296 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO13.LOG
    Wed Feb 13 11:50:27 2008
    ARC0: Beginning to archive log# 12 seq# 295
    Wed Feb 13 11:51:02 2008
    ARC0: Completed archiving log# 12 seq# 295
    Wed Feb 13 12:27:18 2008
    Thread 1 advanced to log sequence 297
    Current log# 7 seq# 297 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO07.LOG
    Wed Feb 13 12:27:18 2008
    ARC0: Beginning to archive log# 13 seq# 296
    Wed Feb 13 12:27:59 2008
    Thread 1 advanced to log sequence 298
    Current log# 8 seq# 298 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO08.LOG
    Wed Feb 13 12:27:59 2008
    ARC1: Beginning to archive log# 13 seq# 296
    ARC1: Failed to archive log# 13 seq# 296
    ARC1: Beginning to archive log# 7 seq# 297
    Wed Feb 13 12:28:33 2008
    Thread 1 advanced to log sequence 299
    Current log# 9 seq# 299 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO09.LOG
    Wed Feb 13 12:29:10 2008
    Thread 1 advanced to log sequence 300
    Current log# 10 seq# 300 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO10.LOG
    Wed Feb 13 12:29:11 2008
    ARC0: Completed archiving log# 13 seq# 296
    ARC0: STARTING ARCH PROCESSES
    ARC2 started with pid=166
    Wed Feb 13 12:29:11 2008
    ARC0: STARTING ARCH PROCESSES COMPLETE
    Wed Feb 13 12:29:11 2008
    ARC0: Beginning to archive log# 7 seq# 297
    ARC0: Failed to archive log# 7 seq# 297
    ARC0: Beginning to archive log# 8 seq# 298
    Wed Feb 13 12:29:12 2008
    ARC2: Archival started
    Wed Feb 13 12:29:32 2008
    ARC1: Completed archiving log# 7 seq# 297
    ARC1: Beginning to archive log# 8 seq# 298
    ARC1: Failed to archive log# 8 seq# 298
    ARC1: Beginning to archive log# 9 seq# 299
    Wed Feb 13 12:29:48 2008
    ARC0: Completed archiving log# 8 seq# 298
    Wed Feb 13 12:29:48 2008
    ARC2: Beginning to archive log# 9 seq# 299
    ARC2: Failed to archive log# 9 seq# 299
    Wed Feb 13 12:30:03 2008
    ARC1: Completed archiving log# 9 seq# 299
    Wed Feb 13 14:46:05 2008
    Thread 1 advanced to log sequence 301
    Current log# 11 seq# 301 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO11.LOG
    Wed Feb 13 14:46:05 2008
    ARC1: Beginning to archive log# 10 seq# 300
    Wed Feb 13 14:46:41 2008
    ARC1: Completed archiving log# 10 seq# 300
    Wed Feb 13 14:57:10 2008
    Thread 1 advanced to log sequence 302
    Current log# 12 seq# 302 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO12.LOG
    Wed Feb 13 14:57:10 2008
    ARC0: Beginning to archive log# 11 seq# 301
    Wed Feb 13 14:57:45 2008
    ARC0: Completed archiving log# 11 seq# 301
    Wed Feb 13 15:46:26 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03852.TRC:
    Wed Feb 13 15:46:26 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03208.TRC:
    Wed Feb 13 15:46:30 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03340.TRC:
    Wed Feb 13 15:46:30 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA00784.TRC:
    Wed Feb 13 15:46:31 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03748.TRC:
    Wed Feb 13 15:46:32 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA01228.TRC:
    Wed Feb 13 16:18:57 2008
    Thread 1 advanced to log sequence 303
    Current log# 13 seq# 303 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO13.LOG
    Wed Feb 13 16:18:57 2008
    ARC2: Beginning to archive log# 12 seq# 302
    Wed Feb 13 16:19:25 2008
    ARC2: Completed archiving log# 12 seq# 302
    Wed Feb 13 18:40:13 2008
    Errors in file E:\Oracle\admin\MUKREC\udump\ORA03872.TRC:
    Thu Feb 14 08:03:54 2008
    Thread 1 advanced to log sequence 304
    Thu Feb 14 08:03:54 2008
    Current log# 7 seq# 304 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO07.LOG
    Thu Feb 14 08:03:55 2008
    ARC1: Beginning to archive log# 13 seq# 303
    Thu Feb 14 08:04:45 2008
    ARC1: Completed archiving log# 13 seq# 303
    Thu Feb 14 08:24:29 2008
    Thread 1 advanced to log sequence 305
    Current log# 8 seq# 305 mem# 0: E:\ORACLE\ORADATA\MUKREC\LOGS\REDO08.LOG
    Thu Feb 14 08:24:29 2008
    ARC0: Beginning to archive log# 7 seq# 304
    Thu Feb 14 08:25:01 2008
    ARC0: Completed archiving log# 7 seq# 304
    ------------------------------------------------------------------------------------------------------------------------------------

  • Best practice for default location of mailbox database(s) / logs

    Hello,
    I don't recall seeing any options during the Exchange 2013 install, to specify an alternate location for either the mailbox database or log files. I've reviewed the commands for moving the mailbox databases, but before reviewing the options for setting a
    location for the log files, I thought it best to see whether it's still advised to separate log/mailbox databases away from the OS, with our Exchange server being a virtualised instance?
    Also, I'm assuming that Exchange still requires the usual backup of transaction logs, for them to be cleared?
    Many thanks.

    Hi JH,
    here is a link to storage options and requirements for the Mailbox server :
    http://technet.microsoft.com/en-us/library/ee832792(v=exchg.150).aspx
    By default when installing New Exchange server With mailbox role,it will create default database and log path.
    Recomended is to have Database and Log files on seperate disks.You will have to attache those disk first,then you can create New database using ECP.
    Please look at my Gallery With full guide on how to setup New Exchange server.
    http://gallery.technet.microsoft.com/Install-Exchange-server-b5cce9e4
    Also for future use you might need to clean up log files to free up Space on Your Exchange server:
    http://gallery.technet.microsoft.com/Task-Scheduler-to-cleanup-25047622
    Hope this helps
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

Maybe you are looking for