orclXDB

Hello

I have two servers:

01 PROD
02 - STANDBY (manually)

When I wrote (Production) this:

[oracle@database ~] $ lsnrctl status

I have this:

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on December 9, 2015 07:03:29

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start date December 2, 2015 08:02:14

Availability 6 days 23 h 1 min 16 sec

Draw level off

Security ON: OS Local Authentication

SNMP OFF

Parameter Listener of the /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora file

The listener log file /U01/app/Oracle/diag/tnslsnr/database/listener/alert/log.XML

Summary of endpoints listening...

(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=database.pgjdom001) (PORT = 1521)))

Summary of services...

Service "orcl" has 1 instance (s).

Instance "orcl", State LOAN, has 1 operation for this service...

Service 'orclXDB' has 1 instance (s).

Instance "orcl", State LOAN, has 1 operation for this service...

But, standby, I have this:

[oracle@standby ~] $ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on December 9, 2015 07:53:49

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start date December 9, 2015 07:03:08

Uptime 0 days 0 h 50 min 40s

Draw level off

Security ON: OS Local Authentication

SNMP OFF

The listener log file /U01/app/Oracle/diag/tnslsnr/standby/listener/alert/log.XML

Summary of endpoints listening...

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=standby) (PORT = 1521)))

Summary of services...

Service "orcl" has 1 instance (s).

'Stdby_orcl' instance, State LOAN, has 1 operation for this service...

The command completed successfully

[oracle@standby ~] $

Where is the Service 'orclXDB' has 1 instance (s). ?? Do not show in my sleep...

in my day, my ORACLE SID is stdby_orcl instead of orcl (production)... some problem when my Eve become production?

backup server (oracle sid): stdby_orcl

production server (oracle sid): orcl

How to activate the XDB service?

The XDB service is defined in the data dictionary, so you will not see her until the database is open.

Tags: Database

Similar Questions

  • backup database

    Hello

    I have two servers:

    01 PROD
    02 - STANDBY (manually)

    When I wrote (Production) this:

    [oracle@database ~] $ lsnrctl status

    I have this:

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on December 9, 2015 07:03:29

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date December 2, 2015 08:02:14

    Availability 6 days 23 h 1 min 16 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/database/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=database.pgjdom001) (PORT = 1521)))

    Summary of services...

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    But, standby, I have this:

    [oracle@standby ~] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on December 9, 2015 07:53:49

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date December 9, 2015 07:03:08

    Uptime 0 days 0 h 50 min 40s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    The listener log file /U01/app/Oracle/diag/tnslsnr/standby/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=standby) (PORT = 1521)))

    Summary of services...

    Service "orcl" has 1 instance (s).

    'Stdby_orcl' instance, State LOAN, has 1 operation for this service...

    The command completed successfully

    [oracle@standby ~] $

    in my day, my ORACLE SID is stdby_orcl instead of orcl (production)... some problem when my Eve become production?

    backup server (oracle sid): stdby_orcl

    production server (oracle sid): orcl

    Than you

    in my day, my ORACLE SID is stdby_orcl instead of orcl (production)... some problem when my Eve become production?

    backup server (oracle sid): stdby_orcl

    production server (oracle sid): orcl

    As long as the db_name is even throughout the main database and emergency, you have no problem with the SID is different in the primary and standby.

    You can have different SID, unique names for two databases may be different, but, on behalf of the BD should remain the same. So depending on your environment, you would not run into problems while crossing.

    -Jonathan Rolland

  • create waiting on another server

    Hello, I am creating the standby database.

    standby and primary are on a DIFFERENT server, so I used this way:

    -------------------------------------------------------------------------------------------------------------------------------

    It's my first parameter:

    * .archive_lag_target = 5400

    *.audit_file_dest='/opt/app/Oracle/admin/ORCL/adump '

    * .audit_trail = "db".

    * full = '11.2.0.0.0'

    *.control_files='/opt/app/oracle/oradata/orcl/control01.ctl','/opt/app/oracle/flash_recovery_area/orcl/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    * .db_files = 500

    * .db_name = "orcl".

    * .db_unique_name = "orcl".

    *.db_recovery_file_dest='/opt/app/Oracle/flash_recovery_area '

    * .db_recovery_file_dest_size = 4070572032

    *.diagnostic_dest='/opt/app/Oracle '

    *. Dispatchers ='(Protocol=TCP) (SERVICE = orclXDB)"

    *. Log_archive_dest_1 = 'LOCATION = / opt/oracle/oradata/ORCL/archive'

    * .log_archive_dest_2 = "service =" (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.10.41) (PORT = 1521))) (CONNECT_DATA = (SID = qutaisi)

    (ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1) (Server = Dedicated))) "late ARCH NOAFFIRM SYNC ',' = 0 max_failure option is 0 = 300' register reopen

    * .log_archive_dest_state_1 = 'ENABLE '.

    * .log_archive_dest_state_2 = 'ENABLE '.

    * .log_archive_max_processes = 4

    * .memory_target = 6731857920

    * .open_cursors = 300

    * runoff = 150

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .undo_tablespace = "UNDOTBS1.

    -----------------------------------------------------------------------------------------------------------------------------------

    It's my expectation parameter:

    *.audit_file_dest='/opt/app/Oracle/admin/qutaisi/adump '

    * .audit_trail = "db".

    * full = '11.2.0.0.0'

    *.control_files='/opt/app/oracle/oradata/qutaisi/control01.ctl','/opt/app/oracle/flash_recovery_area/qutaisi/control02.ctl'

    * .cpu_count = 8

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/opt/app/Oracle/oradata/ORCL/','/opt/app/Oracle/oradata/qutaisi /'

    * .db_files = 500

    * .db_name = "orcl".

    *.db_recovery_file_dest='/opt/app/Oracle/flash_recovery_area '

    * .db_recovery_file_dest_size = 4070572032

    * .db_unique_name = "QUTAISI.

    *.diagnostic_dest='/opt/app/Oracle '

    *. Dispatchers ='(Protocol=TCP) (SERVICE = qutaisiXDB)"

    * .fal_client = "qutaisi.

    * .fal_server = "orcl".

    * .log_file_name_convert = 'spam', 'junk '.

    * .memory_target = 1488M

    * .open_cursors = 300

    * runoff = 150

    * .remote_login_passwordfile = "EXCLUSIVE."

    *.standby_archive_dest='/opt/Orcle/oradata/ORCL/archive '

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    ---------------------------------------------------------------------------------------------------------------------------------

    I replaced the day before pwd file with the primary.

    ---------------------------------------------------------------------------------------------------------------------------------

    I have primary on startup, archivelog mode and standby on startup nomount;

    (sleep I got the following error:)

    "ORA-32004: outdated or obsolete or the parameters specified for the instance of RDBMS; but I do not think he poses problem...)

    ---------------------------------------------------------------------------------------------------------------------------------

    I connect primary as a target for rman and run the command:

    (1) ' change archivelog than any overlap;

    (2) ' remove expired archivelog all;

    (3) ' sql "alter system archive log current;"

    run

    {

    allocate channel d1 type disk;

    allocate channel d2 type disk;

    backup format ' / opt/standby/backf/df_%U' data include current controlfile to sleep;

    SQL 'alter system archive log current';

    ARCHIVELOG backup all the format ' / opt/standby/backf/al_%U';

    current backup controlfile as ' / opt/standby/backf/ctl_%U';

    }"

    He finished with success;

    ---------------------------------------------------------------------------------------------------------------------------------

    then I create manually in sleep mode the same folder "/ opt/Eve/backf" and manually copy files created in primary education "/ opt/Eve/backf.

    ---------------------------------------------------------------------------------------------------------------------------------

    then I connect primary as a target and watch as auxiliary with rman and run the command: "target database duplicate for standby nofilenamecheck dorecover;"

    who follows my window of rman:

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of Db in dual at 27/07/2015 12:30:01

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06053: unable to perform the recovery of the media because of the missing journal

    RMAN-06025: no log backup archived for thread 1 with sequence 93933 and start SNA 3714964892 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93932 and start SNA 3714961387 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93931 and start SNA 3714957392 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93930 and start SNA 3714953844 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93929 and start SNA 3714949755 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93928 and start SNA 3714946101 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93927 and start SNA 3714941870 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93926 and start SNA 3714937839 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93925 and start SNA 3714934060 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93924 and start SNA 3714921706 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93923 and YVERT departure from 3714918104 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93922 and start SNA 3714908123 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93921 and YVERT departure from 3714904462 found to restore

    RMAN-06025: no log backup archived for thread 1 with 93920 and SNA 3714900419 departure sequence found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93919 and start SNA 3714890594 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93918 and start SNA 3714886490 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93917 and start SNA 3714882855 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93916 and start SNA 3714872473 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93915 and start SNA 3714868730 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93914 and start SNA 3714863240 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93913 and start SNA 3714852485 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93912 and start SNA 3714848925 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93911 and start SNA 3714844842 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93910 and start SNA 3714841253 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93909 and YVERT departure from 3714837108 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93908 and start SNA 3714833221 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93907 and YVERT departure from 3714829233 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93906 and start SNA 3714817751 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93905 and start SNA 3714813723 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93904 and start SNA 3714804077 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93903 and start SNA 3714800154 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93902 and start SNA 3714796282 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93901 and YVERT departure from 3714786068 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93900 and start SNA 3714782310 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93899 and start SNA 3714778371 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93898 and start SNA 3714767439 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93897 and start SNA 3714763504 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93896 and start SNA 3714758242 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93895 and start SNA 3714754850 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93894 and YVERT departure from 3714753153 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93893 and YVERT departure from 3714749380 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93892 and start SNA 3714748140 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93891 and start SNA 3714746078 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93890 and start SNA 3714744705 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93889 and start SNA 3714742221 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93888 and start SNA 3714740325 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93887 and start SNA 3714738464 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93886 and start SNA 3714736931 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93885 and start SNA 3714735559 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93884 and start SNA 3714734138 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93883 and start SNA 3714730324 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93882 and start SNA 3714726728 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93881 and YVERT departure from 3714725008 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93880 and start SNA 3714724172 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93879 and YVERT departure from 3714721877 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93878 and start SNA 3714719754 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93877 and start SNA 3714718783 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93876 and start SNA 3714717268 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93875 and start SNA 3714714529 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93874 and start SNA 3714712896 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93873 and start SNA 3714712016 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93872 and start SNA 3714709632 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93871 and start SNA 3714708214 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93870 and start SNA 3714707455 found to restore

    RMAN-06025: no backup log archived for thread 1 with sequence 93869 and YVERT departure from 3714705897 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93868 and start SNA 3714703870 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93867 and start SNA 3714702972 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93866 and start SNA 3714700497 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93865 and start SNA 3714637401 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93864 and start SNA 3714633840 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93863 and start SNA 3714629653 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93862 and start SNA 3714625907 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93861 and start SNA 3714621593 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93860 and start SNA 3714615862 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93859 and start SNA 3714614048 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93858 and start SNA 3714609164 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93857 and start SNA 3714606587 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93856 and start SNA 3714600423 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93855 and start SNA 3714596703 found to restore

    RMAN-06025: no log backup archived for thread 1 with sequence 93854 and start SNA 3714592676 found to restore

    ----------------------------------------------------------------------------------------------------------------------------------

    I have my Eve alert.log suite of errors:

    (at the beginning)

    WARNING: No local destinations have been defined for

    Archives of the standby Redo Log.

    Completed: alter database mount standby

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /opt/app/oracle/diag/rdbms/qutaisi/qutaisi/trace/qutaisi_ora_29017.trc file:

    ORA-19864: RMAN DUPLICATE: expected 1407915508 dbid, dbid-117950334 in datafilecopy /opt/app/oracle/oradata/qutaisi/system01.db

    f

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /opt/app/oracle/diag/rdbms/qutaisi/qutaisi/trace/qutaisi_ora_29017.trc file:

    ORA-19864: RMAN DUPLICATE: expected 1407915508 dbid, dbid-117950334 in datafilecopy /opt/app/oracle/oradata/qutaisi/sysaux01.db

    f

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /opt/app/oracle/diag/rdbms/qutaisi/qutaisi/trace/qutaisi_ora_29017.trc file:

    ORA-19864: RMAN DUPLICATE: expected 1407915508 dbid, dbid-117950334 in datafilecopy /opt/app/oracle/oradata/qutaisi/undotbs01.d

    BF

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /opt/app/oracle/diag/rdbms/qutaisi/qutaisi/trace/qutaisi_ora_29017.trc file:

    ORA-19864: RMAN DUPLICATE: expected 1407915508 dbid, dbid-117950334 in datafilecopy /opt/app/oracle/oradata/qutaisi/users01.dbf

    (that it continues successfully)

    ARC3: Started archiving

    ARC0: FROM PROCESS ARCH COMPLETE

    Mon 27 Jul 11:53:48 2015

    Complete restoration of the 6 data file opt/app/oracle/oradata/qutaisi/bil2.dbf.  Elapsed time: 0:00:55

    Checkpoint is 3714591201

    last deallocation CPN is 3712333883

    ............. (he continues to copy other data files) and ends with this:

    ---------------------------------------------------------------------------------------------------------------------------------

    Managed Standby recovery not using real time applies

    Parallel Media Recovery started with 4 slaves

    ORA - 279 marked during: alter database recover if necessary

    departure pending until the change 3714968967

    ...

    ALTER database recover cancel

    Errors in the /opt/app/oracle/diag/rdbms/qutaisi/qutaisi/trace/qutaisi_pr00_29328.trc file:

    ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error

    ORA-01194: file 1 needs a recovery more match

    ORA-01110: data file 1: ' / opt/app/oracle/oradata/qutaisi/system01.dbf'

    Slave dating exception ORA-1547

    Errors in the /opt/app/oracle/diag/rdbms/qutaisi/qutaisi/trace/qutaisi_pr00_29328.trc file:

    ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error

    ORA-01194: file 1 needs a recovery more match

    ORA-01110: data file 1: ' / opt/app/oracle/oradata/qutaisi/system01.dbf'

    ORA-10879 marked during: alter database recover Cancel...

    ---------------------------------------------------------------------------------------------------------------------------------

    If I understand well it can't copy files from data system, sysoux, user and undotbs. other data files, created by me on primary he copyed successfully...

    so any tips?

    Thanks guys, according to questions that I troubleshoot some things and now I've finally done it.

    It's log_archive_dest_2 parameter, I corrected. and I used standby_archive_dest too instead of log_archive_dest_1 on basis of Eve

  • ORA-28545: error diagnosed by Net8 when connecting to an agent

    Hi all

    This question was asked several times in this forum and I went to many discussions in this forum, but unfortunately I failed.

    I want to connect to MySQL database to oracle. I have the following configurations.

    1. Oracle database edition company 12 c (12.1.0.2.0) 64 bits on 64-bit Windows server 2012
    2. I have 5.6.11 MySQL on windows 7 64 bit
    3. I downloaded the driver site for delivery of oracle ODBC (MySQL Connector/ODBC 5.3.4 MSI for Windows x 86 (64 bit))
    4. I have install ODBC on my oracle server, a full install which installs the Unicode and Ansi versions.
    5. I create the connection ODBC for Unicode by going to control panel-> administrator tools-> (64-bit) ODBC Data Sources-> system DSN. I test and the test succeeded.
    6. I have set up my files Listner.ora, Tnsname.ora and initmysql.ora as below;

    Listner.ora

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = c:\app\Administrator\product\12.1.0\dbhome_1)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:c:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll")
    )
    (SID_DESC =
    (SID_NAME = mysql)
    (ORACLE_HOME = C:\app\Administrator\product\12.1.0\dbhome_1)
    (PROGRAM = dg4odbc)
    (ENVS = LD_LIBRARY_PATH = C:\app\Administrator\product\12.1.0\dbhome_1\LIB)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
    )

    Tnsnames.ora

    PDBORCL =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = pdborcl.hct.org)

    )

    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.hct.org)
    )
    )

    MySQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = N410FS02)(PORT = 1521))
    (CONNECT_DATA =
    (SID = mysql)
    )
    (HS = OK)
    )

    initmysql.ora (C:\app\Administrator\product\12.1.0\dbhome_1\hs\admin\)

    HS_FDS_CONNECT_INFO = mysql

    HS_FDS_TRACE_LEVEL = OFF

    then I stop and start the listener, the listener status is less than

    LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on April 23, 2015 09:16
    : 52

    Copyright (c) 1991, 2014, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=ORADEV.hct.org) (PORT = 152
    (1)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    TNSLSNR for Windows 64-bit version: Version 12.1.0.2.0 - Prod
    ction
    Start date April 23, 2015 09:13:56
    Uptime 0 days 0 h 2 min 59 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    C:\app\Administrator\product\12.1.0\dbhome_1\network\a Listener parameter file
    dmin\listener.ora


    C:\app\Administrator\diag\tnslsnr\ORADEV\listener\aler log listener
    t\log. XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ORADEV.hct.org) (PORT = 1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))
    Summary of services...
    Service 'CLRExtProc' has 1 instance (s).
    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
    "Mysql" service has 1 instance (s).
    "Mysql", status UNKNOWN instance, has 1 operation for this service...
    Service 'orcl.hct.org' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    Service 'orclXDB.hct.org' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    Service 'pdborcl.hct.org' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    The command completed successfully

    tnsping MySQL

    AMT Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 23-APR-2
    015 09:17:54

    Copyright (c) 1997, 2014, Oracle.  All rights reserved.

    Use settings files:
    c:\app\Administrator\product\12.1.0\dbhome_1\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = N410FS02)
    () (PORT = 1521)) (CONNECT_DATA = (SID = mysql)) (HS = OK))
    OK (40 msec)

    then I open sqlplus and connect to my plug-in database as user sys and create a link from public database for the test scheme that I have created in the MySQL database.

    create public database link mysql connect to test identified by test using 'mysql';
    

    then I try the table1 which lies in the scheme of test of MySQL to sqlplus as below

    SQL> select * from table1@mysql;
    select * from table1@mysql
                         *
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from MYSQL
    
    

    I have tried versions of Ansi and Unicode ODBC, but the same question.

    where is the problem in my setup?

    Thank you.

    You use the wrong host name in the tnsnames.ora.

    Take a look at the Oracle listener - it is configured with the address: (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))

    In your tnsnames.ora you specified in the mysql alias: (ADDRESS = (PROTOCOL = TCP) (HOST = N410FS02)(PORT = 1521))

    It does not work. Alias configured in the tnsnames.ora AMT must reference an Oracle listener who begins the process of bridge, so in your case at ORADEV.hct.org.

    So please correct your tnsnames.ora entry:

    MySQL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = ORADEV.hct.org)(PORT = 1521))

    (CONNECT_DATA =

    (SID = mysql)

    )

    (HS = OK)

    )

  • Keep exit status listener on the change, but watch without any error

    Hello

    I once again re installed oracle grid. Through the status of the listener, I find that the status of the listener is evolving with different outputs.

    In the first when I typed lsnrctl status then it's what he showed: -.

    [grid@example ~] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 4 February 2015 10:29:05

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date February 4, 2015 08:59:42

    Uptime 0 days 1 hour 29 minutes 23 seconds

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/grid/diag/tnslsnr/example/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    Summary of services...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", State LOAN, has 1 operation for this service...

    Service 'OrclXDB' has 1 instance (s).

    Instance "Orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    Once again, after waiting a few minutes, I checked again the status of the listener, then it's what she showed.  It shows now the Instance "Orcl", BLOCKED status


    [grid@example ~] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 4 February 2015 10:31:24

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date February 4, 2015 08:59:42

    Uptime 0 days 1 hour 31 min 42 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/grid/diag/tnslsnr/example/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    Summary of services...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", LOCKED status, has 1 operation for this service...

    The command completed successfully

    Once again, after waiting a few minutes, I checked again the status of the listener, then it's what she showed.  It now shows the Instance "Orcl", status RESTRICTED

    [grid@example ~] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 4 February 2015 10:31:36

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date February 4, 2015 08:59:42

    Uptime 0 days 1 hour 31 min 54 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/grid/diag/tnslsnr/example/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    Summary of services...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", RESTRICTED status, has 1 operation for this service...

    The command completed successfully

    After a few minutes back I rechecked the status and now it shows nothing: -.

    [grid@example ~] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 4 February 2015 10:31:20

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date February 4, 2015 08:59:42

    Uptime 0 days 1 hour 31 min 38 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/grid/diag/tnslsnr/example/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    The listener supports no services

    The command completed successfully

    So in short here put it: -.

    FIRST EXIT

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    Summary of services...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", State LOAN, has 1 operation for this service...

    Service 'OrclXDB' has 1 instance (s).

    Instance "Orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    SECOND RELEASE OF THE STATUS OF THE LISTENER

    Summary of services...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", LOCKED status, has 1 operation for this service...

    The command completed successfully

    THIRD EXIT OF THE LISTENER STATUS

    Summary of services...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", RESTRICTED status, has 1 operation for this service...

    FOUR OR THE LAST EXIT OF THE STATUS OF THE LISTENER

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    The listener supports no services

    HERE IS THE RESULT OF THE HOSTNAME

    NOTE: ping hostname tells a different IP in the budgetary balance real ip given on the host name is 192.168.0.1

    [grid@example ~] $ ping hostname

    PING hostname.com (69.43.160.216) 56 (84) bytes of data.

    64 bytes of 69.43.160.216: icmp_seq = 1 ttl = 44 time = 337 ms

    64 bytes of 69.43.160.216: icmp_seq = 3 ttl = 44 time = 335 ms

    ^ C

    -hostname.com ping statistics-

    4 packets transmitted, 2 received, 50% packet loss, time 3899ms

    RTT min/avg/max/leg = 335.532/336.382/337.233/1.029 ms

    [grid@example ~] $ ping example.com

    PING example.com (192.168.0.1) 56 (84) bytes of data.

    64 bytes of example.com (192.168.0.1): icmp_seq = 1 ttl = 64 time = 0,033 ms

    64 bytes of example.com (192.168.0.1): icmp_seq = 2 ttl = 64 time = 0.035 ms

    64 bytes of example.com (192.168.0.1): icmp_seq = 3 ttl = 64 time = 0.038 ms

    64 bytes of example.com (192.168.0.1): icmp_seq = 4 ttl = 64 time = 0.038 ms

    HERE IS THE OUTPUT for sqlnet.ora, listener.ora, tnsnames.ora

    [grid@example admin] $ listener.ora more

    listener.ora # Network Configuration file: /u01/app/11.2.0/grid/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = example.com) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/grid

    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent

    [grid@example admin] $ more sqlnet.ora

    sqlnet.ora # Network Configuration file: /u01/app/11.2.0/grid/network/admin/sqlnet.ora

    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    ADR_BASE = / u01/app/grid

    [grid@example admin] $ more tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/11.2.0/grid/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    ORCL =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = example.com) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    [grid@example admin] $

    Hello

    Sorry can't answer you earlier. I have soved the issue of the listener. In fact, there were two issues one of them was the problem of the LISTENER and the other was the following: -.

    SQL > startup

    ORA-01078: failure in the treatment of system settings

    LRM-00109: could not open the parameter file ' / u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora'ORA-01078:

    First of all, I solved the ORA-01078: LRM-00109: deliver and then I went to solve the problem of the LISTENER. Here is how I solved the problem LISTNER. It now displays the stable state. It does not change like the one I mentioned above: -.

    [grid@example ~] $ cd $ORACLE_HOME/network/admin

    [grid@example ~] $ cd /u01/app/11.2.0/grid/network/admin/

    [grid@example admin] $ [grid@example admin] $ ls-l

    Total 24

    -rw - r - r - 1 grid oinstall 166 6 Feb 10:06 listener15020610AM0614.bak

    -rw - r - r - 1 grid oinstall 436 6 Feb 10:11 listener.ora

    drwxr-xr-x 2 grid oinstall 4096 2 February 14:16 samples

    -rw - r - r - 1 grid oinstall 205 11 May 2011 shrept.lst

    -rw - r - r - 1 grid oinstall 202 6 Feb 10:09 sqlnet.ora

    -rw - r - r - 1 grid oinstall 322 6 Feb 10:07 tnsnames.ora

    [grid@example admin] $ rm - rf *.ora

    NETCA $ [grid@example admin]

    Configure the listener again

    Set up the Configuration of the Local Network Service name

    lsnrctl stop $ [grid@example admin]

    lsnrctl start $ [grid@example admin]

    [grid@example admin] $ lsnrctl reload

    RESTART THE PC

    Connect as a user of network and wait a few minutes... And then check the status... Its not working now, and displays the output of status statble: -.

    [grid@example admin] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on February 6, 2015 11:20:09

    Copyright (c) 1991, 2011, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=example.com) (PORT = 1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production

    Start date February 6, 2015 10:19:34

    Uptime 0 days 1 hour 0 minutes 35 seconds

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/grid/diag/tnslsnr/example/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=example.com) (PORT = 1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    Summary of services...

    Service '+ ASM' a 1 instance (s).

    Instance '+ ASM' READY State, has 1 operation for this service...

    Service "Orcl" has 1 instance (s).

    Instance "Orcl", State LOAN, has 1 operation for this service...

    Service 'OrclXDB' has 1 instance (s).

    Instance "Orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    [grid@example admin] $

  • Developer SQL error: ORA-12505. TNS:listner is not currently of SID given in connect descriptor

    Hello guys, I know this question has been posted on several occasions in the past, but my question includes developer oracle sql only. I can use the database and all the features through sql * more even execute sql queries. but when it comes to developer sql always returns this error. (error: ORA-12505.)

    Windows 8-64 oracle 11 g r2

    --------------------------------------------------------------------------------------------------------------------------------------

    Welcome to LSNRCTL, enter 'help' for more information.

    LSNRCTL > status

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias auditeur1

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production

    Start date August 11, 2014 13:08:08

    Uptime 0 days 0 h 14 min 55 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File C:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora

    C:\app\oracle\diag\tnslsnr\Needo-pc\listener1\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=1521)))

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    -----------------------------------------------------------------------------------------------------------------

    LSNRCTL > services

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    "ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready

    CLRExtProc

    (ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))

    "ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready

    CLRExtProc

    (ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 22 refused: 0 status: ready

    LOCAL SERVER

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Managers:

    "D000" put in place: 0 denied: current: 0 0 max: 1022 State: loan

    DISPATCHER < machine: NEEDO-PC, pid: 3172 >

    (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=52654))

    The command completed successfully

    ------------------------------------------------------------------------------------------

    Thank you!

    Try it with sid ORCL instead of XE.

    If this does not help, then choose SERVICE_NAME orcl instead of SID in sql developer.

    Your listener seems to have an entry for this.

    You can also test it in SQl * more. But what you've done so far in SQl * plus was a "server connection", without providing the database.

    Because in your case, the client and the server is on the same machine, it works with sql * more.

    If you try a customer coonnect by specifying the database, then you would do the same thing as the Oracle SQL Developer is by train.

    For test purposes, something like

    sqlplus user/pwd@host:port/ORCL

    also in the Sqlnet.ora file must be an etry for local EZCONNECT connect method. I don't know if it is set during the installation of network by default.


    You can try if there is an Alias-TNS name (configured in the tnsnames.ora)

    sqlplus user/pwd@ORCL


    If it works with sql * plus, so you must always indicate the sql developer where the tnsnames.ora file is located on your computer.

    The setting can be found in the menu: extras/tools/base data/improved

    The tnsnames.ora file is usually in a file like this:

    C:\Oracle\product\11.2.0\client_1\network\admin


  • Earphone is not upward or the database service is not registered with her

    Hello

    I'm new to the world of the oracle. Newly installed oracle DB 11 g. I tried to start dbconsole his failure. So I looked in Google additional suggestions on the order of RECREATE EM REPOSITORY .emctl stop dbconsole went successfully.

    but when I tried to run emca - deconfig dbcontrol db error listener is not to launch or database service is not registered with it below is the log

    tail - n 20 /u01/app/oracle/cfgtoollogs/emca/ORCL/emca_2014_06_05_09_07_17.log

    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)

    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)

    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)

    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)

    June 5, 2014 perform 09:07:37 oracle.sysman.emcp.EMConfig

    SEVERE: Earphone is not upward or database service is not registered with it. Start the listener and register the service of database and rerun the wizard of Configuration of EM.

    See the file journal at /u01/app/oracle/cfgtoollogs/emca/ORCL/emca_2014_06_05_09_07_17.log for more details.

    June 5, 2014 perform 09:07:37 oracle.sysman.emcp.EMConfig

    CONFIG: Stack Trace:

    oracle.sysman.emcp.exception.EMConfigException: listener has not elapsed or the database service is not registered with it. Start the listener and register the service of database and rerun the wizard of Configuration of EM.

    at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3245)

    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:203)

    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)

    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)

    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)

    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)

    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)

    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)

    Oracle.sysman.emcp.EMConfig 5 June 2014 RestoreOuiLoc 09:07:37

    CONFIG: Restoration of oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/db_1/oui

    [config oracle@gds-bgl-oradb] $ tail-f /u01/app/oracle/cfgtoollogs/emca/ORCL/emca_2014_06_05_09_07_17.log

    at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3245)

    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:203)

    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)

    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)

    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)

    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)

    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)

    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)

    Oracle.sysman.emcp.EMConfig 5 June 2014 RestoreOuiLoc 09:07:37

    CONFIG: Restoration of oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/db_1/oui

    IG] $


    [oracle@gds-bgl-oradb db_1] $ cat network/admin/listener.ora

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    (ADDRESS = (PROTOCOL = TCP) (HOST = gds-bgl-oradb)(PORT = 1521))

    )

    )

    [oracle@gds-bgl-oradb db_1] $ cat network/admin/tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    LISTENER_ORCL =

    (ADDRESS = (PROTOCOL = TCP) (HOST = gds-bgl-oradb)(PORT = 1521))

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = gds-bgl-oradb)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl.cisco.com)

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    [oracle@gds-bgl-oradb db_1] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on June 5, 2014 09:30

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date June 5, 2014 08:55:04

    Uptime 0 days 0 hours 34 min 56 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/GDS-BGL-OraDB/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = gds - bgl - oradb.cisco.com)(PORT=1521)))

    Summary of services...

    Service "ORCL" has 1 instance (s).

    Instance "ORCL", State LOAN, has 1 operation for this service...

    Service 'orclXDB' has 1 instance (s).

    Instance "ORCL", State LOAN, has 1 operation for this service...

    The command completed successfully

    Please help me.

    You create the password with passwd file utility with the key.

    for the normal user login try one account other than sys (HR, System...)

  • The Oracle service name - with or without net suffix?

    In sqlplus I tape the show parameter name and I get the following output

    SQL > show the name of the parameter;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_file_name_convert chain

    db_name string orcl

    db_unique_name string orcl

    global_names boolean FALSE

    instance_name string orcl

    lock_name_space string

    log_file_name_convert chain

    service name string EXP

    SQL >

    However, when I try to connect from a client PC like that

    sqlplus system/password@DBHOST/EXP

    I can not connect - I get the error:

    ORA-12514: TNS:listener is not currently of service requested in connect

    On the host, I type lsnrctl status and I get this for the endpoints listening:

    Summary of endpoints listening...

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=OracleExp) (PORT = 1521)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    Service 'EXP.168.203.30' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orcl.168.203.30' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB.168.203.30' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    I can connect from a client computer, as long as I'm using the suffixe.168.203.30 - in other words

    sqlplus system/password@oracleexp/exp.168.203.30

    works very well. However, I won't use the suffix!

    Why the listener is adding a suffix in the name of my service and how do I stop this?

    Thank you

    A.

    Hello

    "You have a domain name is ' 168.203.30 ', which is added to name service.

    You can see with see the db_domain parameter

    Kind regards

    Franck.

  • TNS-12545: Connect failed because target host or object does not exist

    Hi all

    I have two hosts with me. 1 host1 and 2. host2. Host1 have ORCL database. And when I'm doing the tnsping to host2 for database ORCL I get error below.

    [oracle@host2 ~] $ hostname

    host2.example.com

    [oracle@host2 ~] $ tnsping ORCL

    AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 5 April 2014 20:31:40

    Copyright (c) 1997, 2009, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORCL)))

    TNS-12545: Connect failed because target host or object does not exist

    Here's my tns annually involves Details:

    on host1:

    [oracle@host1 admin] $ listener.ora more

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ORCL. WORLD)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = ORCL)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    [oracle@host1 admin] $ more tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = ORCL)

    )

    )

    MYTEST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host2.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = MYTEST)

    )

    )

    LSNRCTL > status

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=host1.example.com) (PORT = 1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date April 5, 2014 20:09:33

    Uptime 0 days 0 h 25 min 1 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/host1/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=host1.example.com) (PORT = 1521)))

    Summary of services...

    Service "ORCL" has 1 instance (s).

    Instance "ORCL", State LOAN, has 1 operation for this service...

    Service "ORCL. The WORLD' has 1 instance (s).

    Instance "ORCL", status UNKNOWN, has 1 operation for this service...

    Service 'ORCLXDB' has 1 instance (s).

    Instance "ORCL", State LOAN, has 1 operation for this service...

    The command completed successfully

    On host2:

    [oracle@host2 admin] $ listener.ora more

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = MYTEST. WORLD)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = MYTEST)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host2.example.com) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    [oracle@host2 admin] $ tnsname.ora more

    TNSNAME.ora: no such file or directory

    [oracle@host2 admin] $ more tnsnames.ora

    MYTEST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host2.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = MYTEST)

    )

    )

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = ORCL)

    )

    )

    Please help me what I do in configuring the listener and tns.

    Kind regards

    Michel

    fb767351-A660-4b18-9a9f-73bc141f6a0c wrote:

    Hi all

    I have two hosts with me. 1 host1 and 2. host2. Host1 have ORCL database. And when I'm doing the tnsping to host2 for database ORCL I get error below.

    [oracle@host2 ~] $ hostname

    host2.example.com

    [oracle@host2 ~] $ tnsping ORCL

    AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on 5 April 2014 20:31:40

    Copyright (c) 1997, 2009, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORCL)))

    TNS-12545: Connect failed because target host or object does not exist

    If your entry for "ORCL" tnsnames decided to 'contact' indicated info.  He tried to send a ping packet to the server identified by "(HOST = host1.example.com)". "  Oracle tns transmitted the request to the network stack of BONES for the resolution and routing.  Here, 'host1.example.com' host name could not be resolved to an IP address, or if it was, it was an IP address that is a dead-end.

    Here's my tns annually involves Details:

    We see the details necessary out of your tnsping tns.  Since the application never had the host (as is obvious in the error message), nothing about the questions of the listener - he never got.

    on host1:

    As your example tnsping host2, and says that the error message obvious host1 is nowhere to be found, like the listener, none of the files of configuration on host1 question - demand ever on host1.

    [oracle@host1 admin] $ listener.ora more

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ORCL. WORLD)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = ORCL)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    [oracle@host1 admin] $ more tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = ORCL)

    )

    )

    MYTEST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host2.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = MYTEST)

    )

    )

    LSNRCTL > status

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=host1.example.com) (PORT = 1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date April 5, 2014 20:09:33

    Uptime 0 days 0 h 25 min 1 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/host1/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=host1.example.com) (PORT = 1521)))

    Summary of services...

    Service "ORCL" has 1 instance (s).

    Instance "ORCL", State LOAN, has 1 operation for this service...

    Service "ORCL. The WORLD' has 1 instance (s).

    Instance "ORCL", status UNKNOWN, has 1 operation for this service...

    Service 'ORCLXDB' has 1 instance (s).

    Instance "ORCL", State LOAN, has 1 operation for this service...

    The command completed successfully

    On host2:

    Okay, the problem being that a client on host2 couldn't solve a connection to hos1, these could be revealing.

    [oracle@host2 admin] $ listener.ora more

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = MYTEST. WORLD)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = MYTEST)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host2.example.com) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    Except that in the example, we work with, host2 is the customer, trying to reach a database on host1.  Any listener on host2 is totally irrelevant.

    [oracle@host2 admin] $ tnsname.ora more

    TNSNAME.ora: no such file or directory

    [oracle@host2 admin] $ more tnsnames.ora

    MYTEST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host2.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = MYTEST)

    )

    )

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = host1.example.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = ORCL)

    )

    )

    It's the only tns configuration file that is important for the problem at hand.  And we already knew what he said, since the output of your command of tnsping.

    Please help me what I do in configuring the listener and tns.

    Kind regards

    Michel

    Is "host1.exampl.com" the real hostname of your machine "host1"?  Or you made that blur in your ad - thing quite legitimate to do this for security reasons.

    Whatever, this is not really a matter of tns, unless of course 'host1.example.com' is really what you put in the tnsnames file, but your server "host1" became really something else.

    Assuming that 'host1.example.com' is the correct value, debugging starts with the following:

    [oracle@host2 admin] $ ping host1.example.com

    [oracle@host2 admin] $ tracerout host1.example.com

  • ORA-00205: error in the identification of control files, see log alerts for more information

    Hello

    I'm putting it on oracle 11.2.0.1 to 11.2.0.3 DB level but during DBUA, I got error

    "ORA-00205: error in the identification of control files, check the log of alerts for more information.


    I have check the alerts log in E:\app\kmahalingam\diag\rdbms\orcl\orcl\trace\alert_orcl.txt

    Starting ORACLE instance (normal)

    LICENSE_MAX_SESSION = 0

    LICENSE_SESSIONS_WARNING = 0

    SNA system picked latch-free 3

    With the help of LOG_ARCHIVE_DEST_1 parameter value by default as USE_DB_RECOVERY_FILE_DEST

    Autotune undo retention is enabled.

    IMODE = BR

    ILAT = 51

    LICENSE_MAX_USERS = 0

    SYS audit is disabled

    Commissioning:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With the options of partitioning, OLAP, Data Mining and Real Application Testing.

    Windows NT Version V6.1 Service Pack 1

    UC: 8 - type 8664, 8 physical cores

    Process affinity: 0 x 0 x 0000000000000000

    Memory (success/Total): Ph: 3241 M / 16383 M, Ph + FCP: 16565 M / 32765 M

    Using parameters in spfile E:\APP\KMAHALINGAM\PRODUCT\11.2.0\DBHOME_2\DATABASE\SPFILEORCL server-side. ORA

    Parameters of the system with default values:

    process = 300

    sessions = 472

    memory_target = 3280M

    control_files = 'E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL01. CTL.

    control_files = 'E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\CONTROL02. CTL.

    DB_BLOCK_SIZE = 8192

    compatible = "11.2.0.0.0."

    db_recovery_file_dest = 'E:\app\kmahalingam\flash_recovery_area. '

    db_recovery_file_dest_size = 3912M

    undo_tablespace = 'UNDOTBS1.

    Remote_login_passwordfile = "EXCLUSIVE."

    db_domain = "cpg.com."

    dispatchers = "(PROTOCOL=TCP) (SERVICE = orclXDB)" "

    audit_file_dest = "E:\APP\KMAHALINGAM\ADMIN\ORCL\ADUMP".

    AUDIT_TRAIL = 'NONE '.

    db_name = "orcl".

    open_cursors = 300

    star_transformation_enabled = 'TRUE '.

    diagnostic_dest = "E:\APP\KMAHALINGAM".

    Fri Mar 07 00:33:15 2014

    PMON started with pid = 2, OS id = 25072

    Fri Mar 07 00:33:15 2014

    PSP0 started with pid = 3, OS id = 25688

    Fri Mar 07 00:33:16 2014

    VKTM started with pid = 4, OS id = 27608 high priority

    VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms

    Fri Mar 07 00:33:16 2014

    GEN0 started with pid = 5, OS id = 11484

    Fri Mar 07 00:33:16 2014

    DIAG started with pid = 6, OS id = 16980

    Fri Mar 07 00:33:16 2014

    DBRM started with pid = 7, OS id = 2200

    Fri Mar 07 00:33:16 2014

    DIA0 started with pid = 8, OS id = 8024

    Fri Mar 07 00:33:16 2014

    MA started with pid = 9, OS id = 15688

    Fri Mar 07 00:33:16 2014

    DBW0 started with pid = 10, OS id = 19908

    Fri Mar 07 00:33:16 2014

    LGWR started with pid = 11, OS id = 22616

    Fri Mar 07 00:33:16 2014

    CKPT started with pid = 12, OS id = 12828

    Fri Mar 07 00:33:16 2014

    SMON started with pid = 13, OS id = 10184

    Fri Mar 07 00:33:16 2014

    RECCE has started with pid = 14, OS id = 28984

    Fri Mar 07 00:33:16 2014

    MMON started with pid = 15, OS id = 22288

    Fri Mar 07 00:33:16 2014

    MMNL started with pid = 16, OS id = 12072

    commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...

    commissioning or shared server 1...

    Environment ORACLE_BASE = E:\app\kmahalingam

    Fri Mar 07 00:33:16 2014

    ALTER DATABASE MOUNT

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\CONTROL02. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL01. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA - 205 marked during: ALTER DATABASE MOUNT...

    Fri Mar 07 00:34:46 2014

    ALTER DATABASE MOUNT

    Fri Mar 07 00:34:46 2014

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\CONTROL02. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL01. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA - 205 marked during: ALTER DATABASE MOUNT...

    Fri Mar 07 00:45:51 2014

    change the database editing

    Fri Mar 07 00:45:51 2014

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\CONTROL02. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL01. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA - 205 scored at the course: change the editing of the database...

    Fri Mar 07 00:48:13 2014

    change the database editing

    Fri Mar 07 00:48:13 2014

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\CONTROL02. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA-00210: could not open the specified control file

    ORA-00202: control file: ' E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL01. CTL'

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    ORA - 205 scored at the course: change the editing of the database...

    Fri Mar 07 00:52:34 2014

    Derives from detected time. Check the file path VKTM for more details.

    Fri Mar 07 00:53:46 2014

    Closure of proceedings (immediate)

    Closure of proceedings: in addition to logons disabled

    Stop background MMNL process

    MMON background process stop

    The high waters = 1 license

    All dispatchers/dispatchers and shared servers stop

    ALTER DATABASE CLOSE NORMAL

    ORA-1507 marked during: ALTER DATABASE CLOSE NORMAL...

    ARCH: Disabled archives due to the stop: 1089

    Stop process to archive

    Archiving is disabled

    ARCH: Disabled archives due to the stop: 1089

    Stop process to archive

    Archiving is disabled

    Fri Mar 07 00:53:49 2014

    Stop background VKTM process

    Fri Mar 07 00:53:51 2014

    Instance shutdown complete

    Fri Mar 07 00:54:01, 2014

    Setting the default value of the parameter parallel_max_servers

    320 to 285 because of the value of the process parameters (300)

    Help, please

    Thank you

    According to spfile.

    control_files = 'E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL01. CTL.

    control_files = 'E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\CONTROL02. CTL.

    You mentioned

    Davinapochon wrote:

    E:\APP\KMAHALINGAM\ORADATA\ORCL\CONTROL02. CTL file is there but there is no CONTROL01. CTL file.

    So little confused here.

    E:\APP\KMAHALINGAM\ORADATA\ORCL\--> must contain CONTROL01. CTL

    E:\APP\KMAHALINGAM\FLASH_RECOVERY_AREA\ORCL\--> must contain CONTROL02. CTL

    What is it now?

    Anand

  • Help connecting to the DB-Pluggable in Oracle 12 c

    Hello

    Let me start by providing the details and what I've done so far and what I'm trying to do.

    I have an office of Suse Linux 13.1

    I managed to install the server Oracle 12 c on the machine. (During installation I chose the option to install as a db container)

    I put my .bashrc file to set the variables to oracle at the start.

    ORACLE_HOSTNAME=shona.teamshona.dom; export ORACLE_HOSTNAME
    ORACLE_BASE=/home/oracle/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1; export ORACLE_HOME
    ORACLE_SID=orcl; export ORACLE_SID
    

    I understand that with oracle 12 c, we have the container DB (CBD) and DB-ins (PDB)

    I modified my file tnsnames.ora as below-

    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = shona.teamshona.dom)(PORT = 1521))
    
    
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = shona.teamshona.dom)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.teamshona.dom)
        )
      )
    PDBORCL =
    
    
      (DESCRIPTION =
    
    
        (ADDRESS = (PROTOCOL = TCP)(HOST = shona.teamshona.dom)(PORT = 1521))
    
    
        (CONNECT_DATA =
    
    
          (SERVER = DEDICATED)
    
    
          (SERVICE_NAME = pdborcl.teamshona.dom)
    )
    )
    

    I have my listener.ora as file

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = shona.teamshona.dom)(PORT = 1521))
        )
      )
    
    
    #pdborcl.teamshona.dom
    
    
    SID_LIST_LISTENER=
      (SID_LIST=
        (SID_DESC=
          (GLOBAL_DBNAME=orcl.teamshona.dom)
          (SID_NAME=orcl))
        (SID_DESC=
           (GLOBAL_DBNAME=pdborcl.teamshona.dom)
           (SID_NAME=pdborcl))
    
    
        )
    

    My listener status-

    lsnrctl status
    
    
    LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 06-FEB-2014 21:26:29
    
    
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.1.0.1.0 - Production
    Start Date                06-FEB-2014 21:25:31
    Uptime                    0 days 0 hr. 0 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/linux-gan9/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux-gan9.nycap.rr.com)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=linux-gan9.nycap.rr.com)(PORT=5500))(Security=(my_wallet_directory=/home/oracle/app/oracle/admin/orcl/xdb_wallet))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "orcl.teamshona.dom" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.teamshona.dom" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "pdborcl.teamshona.dom" has 2 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
      Instance "pdborcl", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    

    I can connect to sqlplus in sys and gave the following orders:

    Connect to sqlplus -> sys as sysdba
    > startup
    ORACLE instance started.
    
    Total System Global Area 2505338880 bytes
    Fixed Size                  2291472 bytes
    Variable Size             671090928 bytes
    Database Buffers         1811939328 bytes
    Redo Buffers               20017152 bytes
    Database mounted.
    Database opened.
    
    SQL> alter pluggable database all open;
    Pluggable database altered.
    
    SQL> SELECT NAME, OPEN_MODE, RESTRICTED, OPEN_TIME FROM V$PDBS;
    
    NAME                           OPEN_MODE  RES  OPEN_TIME                                                                                                                                                                          
    
    PDB$SEED                       READ ONLY  NO   06-FEB-14 08.33.36.043 PM
    PDBORCL                        READ WRITE NO   06-FEB-14 08.38.27.992 PM
    
    SQL> ALTER SESSION SET container = pdborcl;
    
    Session altered.
    
    SQL>alter user hr identified by *** account unlock; 
    -user altered-
    
    
    Now I exit out and try 
    $ sqlplus 
    Enter user-name: hr@pdborcl
    Enter password: 
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    
    Enter user-name: [email protected]
    Enter password: 
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    

    I read a lot about the connection to PDB

    Many articles on how oracle 12 c uses the name of the service and no SID to connect to PDB etc etc.

    But ultimately I cannot connect to my PDB by using my user hr.

    Appreciate the help in advance and looking forward to a solution.

    Will provide additional details as requested

    Hello

    You should have an entry in your home/oracle/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora file with the following:

    pdborcl =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = linux - gan9.nycap.rr.com)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = pdborcl.teamshona.dom)

    )

    )

    That sqlplus hr@pdborcl should work.

    Kind regards

    Gerwin

  • Not able to connect to the OEM on the browser

    Information system: VMware-> Oracle Linux 6.x-> Oracle DB 11.2.0.1.0

    Problem: Oracle DB is up and running, EMCTL Agent is up and running, listener is up and running, SQL MORE runs. BUT when I try to connect OEM on the browser https://localhost:1158 / em/console/opening session/connection

    I get the message "unable to connect".

    Screenshots:

    =========================================================================

    Agent is running and ready
    [oracle@localhost bin] $. / status emclt agent
    bash:. / emclt: no such file or directory
    [oracle@localhost bin] $. / emctl status agent
    Oracle Enterprise Manager 11 g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, Oracle Corporation, 2009.  All rights reserved.
    ---------------------------------------------------------------
    Agent version: 10.2.0.4.2
    Version of the WHO: 10.2.0.4.2
    Protocol version: 10.2.0.4.2
    Agent home: /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl
    File binary agent: /u01/app/oracle/product/11.2.0/db_1
    Agent process ID: 4601
    Parent process ID: 4582
    Agent URL: https://localhost.localdomain:3938/emd/main
    Repository URL: https://localhost.localdomain:5500/em/upload /
    Starts at: 2014-01-09 10:03:35
    Started by user: oracle
    Last reload: 2014-01-09 10:09:40
    Last download successful: (none)
    Last attempt to download: (none)
    Total megabytes of XML files uploaded so far: 0.00
    Number of XML, files awaiting download: 37
    Size of the XML files in the upload wait (MB): 4.34
    Available disk space on the file upload system: 23,56%
    Directory to upload Data channel: /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl/sysman/recv
    Last heartbeat to WHO attempt: 2014-01-09 10:11:50
    Last pulse in SGD: unknown
    ---------------------------------------------------------------
    Agent is running and ready

    ============================================================================================

    SQL * more: Production of release 11.2.0.1.0 Thu Jan 9 10:19:06 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Enter the user name: sys as sysdba
    Enter the password:
    Connect to an instance is idle.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 795127808 bytes
    Bytes of size 1339456 fixed
    499126208 variable size bytes
    289406976 of database buffers bytes
    Redo buffers 5255168 bytes
    Mounted database.
    Open database.

    ===========================================================================

    [oracle@localhost bin] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 9 January 2014 10:33:20

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start date January 9, 2014 09:51:31
    Uptime 0 days 0 h 41 min 48 s
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora file
    The listener log file /U01/app/Oracle/diag/tnslsnr/localhost/listener/alert/log.XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=localhost.localdomain) (PORT = 1521)))
    Summary of services...
    Service 'orcl.localdomain' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    Service 'orclXDB.localdomain' has 1 instance (s).
    Instance "orcl", State LOAN, has 1 operation for this service...
    The command completed successfully

    =====================================================================================

    What are the results when you do as below?

    https://localhost.localdomain:5500 / console/em/aboutApplication

  • Reading SQL Server from Oracle table

    Hello

    Oracle 11.2.0.1

    Windows XP Prof Edition

    After you create the DSN name DPO when I tried to connect the database sql server 2005 Enterprise edition on the same PC, I failed to establish connectivity.

    Here's what I did:

    C:\Documents and Settings\Administrateur > type %oracle_home%\network\admin\listener.ora

    listener.ora # Network Configuration file: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")

    )

    (SID_DESC =

    (SID_NAME = opd)

    (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)

    (PROGRAM = dg4odbc)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = newserver4) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = C:\app\Administrator

    C:\Documents and Settings\Administrateur > type %oracle_home%\network\admin\tnsnames.ora

    tnsnames.ora # Network Configuration file: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    LISTENER_ORCL =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = newserver4) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl)

    )

    )

    DPO =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS =

    (PROTOCOL = TCP)

    (HOST = newserver4)

    (PORT = 1521)

    )

    )

    (CONNECT_DATA = (SID = opd))

    (HS = OK)

    )

    C:\Documents and Settings\Administrateur > type %oracle_home%\network\admin\sqlnet.ora

    sqlnet.ora # Network Configuration file: C:\app\Administrator\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 can opt for

    # install 'Software Only', this file does not 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)

    C:\Documents and Settings\Administrateur > lsnrctl status

    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production 31 December 2013 18:26:13

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production

    Start date December 31, 2013 18:05:31

    Uptime 0 days 0 h 20 min 43 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora

    C:\app\administrator\diag\tnslsnr\newserver4\listener\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=newserver4) (PORT = 1521)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    "Opd" service has 1 instance (s).

    Instance "opd", status UNKNOWN, has 1 operation for this service...

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    C:\Documents and Settings\Administrateur > tnsping DPO

    AMT Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production 31 December 2013 18:26:29

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:

    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = newserver4) (PORT = 1521))) (CONNECT_DATA = (SID = opd)) (HS = OK))

    OK (40 msec)

    C:\Documents and Settings\Administrateur > type %oracle_home%\hs\admin\initopd.ora

    # This is an example of initialization file of the agent that contains the HS settings

    # necessary for the database to ODBC gateway

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = DPO

    HS_FDS_TRACE_LEVEL = off

    #

    # Required for the non-Oracle system environment variables

    #

    #set < varenv > = < value >

    C:\Documents and Settings\Administrateur > sqlplus scott/tiger

    SQL * more: Production release 11.2.0.1.0 on Mar 31 18:27:18 dec 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > drop database link DPO;

    Database link dropped.

    SQL > create DPO link database to connect to 'his' identified by 'girish' using 'opd ';

    Database link created.

    SQL > select count (*) in the ny@opd;

    Select count (*) in ny@opd

    *

    ERROR on line 1:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:

    [Microsoft] [ODBC driver manager] Name of data source not found and no default value

    specified driver {IM002}

    ORA-02063: preceding 2 lines of OPD

    SQL > exit

    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    C:\Documents and Settings\Administrateur >

    PS: I do not know why I am not able to see my question above on the forum of heterogeneous connectivity , while the thread was generated:https://community.oracle.com/thread/2616787

    Thanks and greetings

    Girish Sharma

    Something new I learned today (32-bit and 64-bit): name not found and no data source driver by default specified - Dev Articles

  • AMT-12557: TNS:protocol adapter not loadable

    Hi am not able to start my listner, am getting above error
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=1521)))
    TNS-12557: TNS:protocol adapter not loadable
     TNS-12560: TNS:protocol adapter error
      TNS-00527: Protocol Adapter not loadable
    
    LSNRCTL> start
    Starting tnslsnr: please wait...
    
    TNS-12557: TNS:protocol adapter not loadable
     TNS-12560: TNS:protocol adapter error
      TNS-00527: Protocol Adapter not loadable
    
    my path is
    PATH=C:\OracleClient32;C:\app\10017134\product\11.2.0\dbhome_1\BIN;C:\DevSuiteHome\jdk\jre\bin\classic;C:\DevSuiteHome\jdk\jre\bin;C:\DevSuiteHome\jdk\jre\bin\client;C:\DevSuiteHome\jlib;C:\DevSuiteHome\bin;C:\DevSuiteHome\jre\1.4.2\bin
    SuiteHome\jre\1.4.2\bin;C:\DevSuiteHome;C:\app\10017134\product\11.2.0\dbhome_1;C:\Windows\System32;C:\Windows;C:\DevSuiteHome\BIN;C:\app\10017134\product\11.2.0\dbhome_1\NETWORK\ADMIN;C:\Oracle\Middleware\jdk160_24;C:\james-2.3.2;C:\ja
    C:\james-2.3.2\temp
    
    mt set is
    C:\>set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\10017134\AppData\Roaming
    CommonProgramFiles=C:\Program Files (x86)\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=SRD-WS23042
    ComSpec=C:\Windows\system32\cmd.exe
    FPPUILang=en-US
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\10017134
    JAVA_HOME=C:\Oracle\Middleware\jdk160_24\jre\bin
    LOCALAPPDATA=C:\Users\10017134\AppData\Local
    LOGONSERVER=\\SRDVCDW003
    NUMBER_OF_PROCESSORS=4
    OnlineServices=Online Services
    OOBEUILang=en-US
    ORACLE_HOME=C:\DevSuiteHome
    OS=Windows_NT
    Path=C:\OracleClient32;C:\app\10017134\product\11.2.0\dbhome_1\BIN;C:\DevSuiteHome\jdk\jre\bin\classic;C:\DevSuiteHome\jdk\jre\bin;C:\DevSuiteHome\jdk\jre\bin\client;C:\DevSuiteHome\jlib;C:\DevSuiteHome\bin;C:\DevSuiteHome\jre\1.4.2\bin
    SuiteHome\jre\1.4.2\bin;C:\DevSuiteHome;C:\app\10017134\product\11.2.0\dbhome_1;C:\Windows\System32;C:\Windows;C:\DevSuiteHome\BIN;C:\app\10017134\product\11.2.0\dbhome_1\NETWORK\ADMIN;C:\Oracle\Middleware\jdk160_24;C:\james-2.3.2;C:\ja
    C:\james-2.3.2\temp
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PHOENIX_HOME=C:\james-2.3.2
    PHOENIX_JAVACMD=C:\Oracle\Middleware\jdk160_24\jre\bin\bin\java
    PHOENIX_JVM_OPTS= -Dnetworkaddress.cache.ttl=300
    PHOENIX_SM="-Djava.security.manager"
    PHOENIX_TMPDIR=C:\james-2.3.2\temp
    Platform=BPC
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_ARCHITEW6432=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=3a09
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files (x86)
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PTSMInstallPath_X86=c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\
    PUBLIC=C:\Users\Public
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\10017134\AppData\Local\Temp
    TMP=C:\Users\10017134\AppData\Local\Temp
    TNS_ADMIN=C:\app\10017134\product\11.2.0\dbhome_1\NETWORK\ADMIN
    UATDATA=C:\Windows\SysWOW64\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
    USERDNSDOMAIN=domain
    USERDOMAIN=ASTZA
    USERNAME=useranae
    USERPROFILE=C:\Users\10017134
    windir=C:\Windows
    windows_tracing_flags=3
    windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
    C:\>
    
    
    C:\>
    How to solve this

    Published by: adf009 on 05/31/2013 10:05

    Published by: adf009 on 05/31/2013 10:05

    Published by: adf009 on 05/31/2013 10:07

    adf009 wrote:
    in 64 bit Windows 7

    And which edition? Don't forget, the oracle is not supported on any edition of Windows "home".

    C:\>set ORACLE_HOME=C:\app\10017134\product\11.2.0\dbhome_1
    
    C:\>set PATH=C:\app\10017134\product\11.2.0\dbhome_1\BIN
    
    LSNRCTL> STATUS
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                31-MAY-2013 08:55:55
    Uptime                    1 days 3 hr. 12 min. 23 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\10017134\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    Listener Log File         c:\app\10017134\diag\tnslsnr\srd-ws23042\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host)(PORT=1521)))
    Services Summary...
    Service "TESTOLTPDB" has 1 instance(s).
    Instance "TESTOLTPDB", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> exit
    

    It seems that you have solved the problem that you have opened the wire for. You are now able to start the listener.

    >

    C:\>sqlplus/NoLog

    SQL * more: Production of release 11.2.0.1.0 Sat Jun 1 12:09:21 2013

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    SQL > connect sysdba virtue
    ERROR:
    ORA-12560: TNS:protocol adapter error

    And now you have a new, different problem.

    99.99% of the time I see this problem with a connection of sqlplus on windows, this is because the variable ORACLE_SID is not set correctly, or not at all.

    c:> set ORACLE_SID=TESTOLTPDB
    C:> sqlplus / as sysdba
    
    am not able to connect as sysdba
    

    Edited by: adf009, 2013/06/01 13:11

    Published by: EdStevens on June 2, 2013 09:05

  • Call the function C external plsql - function of mapping error ORA-06521

    Dear all,

    I have the following C code:
    class Factorial {
      public:
      int getVal (int a);
    };
    
    #include "Factorial.h"
    int Factorial::getVal (int a){
      if(a!=1){
        return(a * getVal(a-1));
        }
      else return 1;
    }
    I created the library (.so) shared, created the library in Oracle DB, set up the extproc earphone and etc.
    Also, I created the following plsql code:
    CREATE OR REPLACE PACKAGE c_pack AS
      function factorial_func(x in pls_integer) return pls_integer;
    END;
    /
    CREATE OR REPLACE PACKAGE BODY c_pack AS
    
       function factorial_func(x in pls_integer)
         return  pls_integer
       as language c
       library sys.c_factorial
       name "getVal";
       
    END;
    /
    When I am trying to run this function always get ORA-06521. I changed the types of data - but nothing has changed.

    Help, please.

    Just in case, listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = db)(PORT = 1521))
                       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) 
        )
      )
    
    ADR_BASE_LISTENER = /u01/app/oracle
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
         (SID_NAME = PLSExtProc)
         (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
         (PROGRAM = extproc)
         (ENVS = "EXTPROC_DLLS=/u01/app/oracle/product/c_lib/factorial.so, LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib")
        )
      )
    [oracle@db admin]$ lsnrctl status listener
    
    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-FEB-2013 21:24:36
    
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     listener
    Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date                04-FEB-2013 21:23:37
    Uptime                    0 days 0 hr. 0 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@db admin]$

    Hi 952942,

    The following code works fine:

    int getVal (int a){
      if(a!=1){
        return(a * getVal(a-1));
        }
      else return 1;
    }
    

    Compile and create the shared library:

    gcc -fPIC -c factorial.c
    gcc -shared -o factorial.so factorial.o
    

    Package:

    CREATE OR REPLACE PACKAGE c_pack AS
      function factorial_func(x in binary_integer) return binary_integer;
    END;
    /
    CREATE OR REPLACE PACKAGE BODY c_pack AS
       function factorial_func(x in binary_integer)
         return  binary_integer
       as language c
       library sys.c_factorial
       name "getVal";
    END;
    / 
    

    It works:

    begin
      dbms_output.put_line(c_pack.factorial_func(5));
    end;
    120
    

    Best regards
    Gena

Maybe you are looking for