SQL Plus access Errors

Hi All;
First off if this is a misplaced post, sorry about that and please let me know where it should be posted.
I have an Oracle 11.g server that WAS functioning fine up to as of late. For some reason users cannot use SQL Developer (on the server) anymore and are now getting the ever so common error when trying to connect:
ORA-12514 TNS:Listener does not current know of the service.
Nothing has changed with regards to the user ID and passwords, nor have the service names changed or any other config to the Listener.
ALSO:
If I try to come in via a CLI with sqlplus commands, no dice here either. I'll try this path:
@prompt: sqlplus /nolog
@prompt: SQL*PLUS: Release 11.1.0.6.0 Product...etc. etc.
@prompt: connect /as sysdba
@prompt: ERROR:
ORA-12560 TNS: protocol adapter error
Yes I have did some "google" searches, but they just seem to hint about new installs and configurations. Not said error issues with prior functioning systems.
Any help would be greatly appreciated. Thanks in advance, Steve
Edited by: user10773923 on Apr 1, 2010 3:45 PM
Edited by: user10773923 on Apr 1, 2010 3:46 PM

Hi,
If on windows, did you change the name of you machine?
It will fail your DB from starting up.
Often
Nothing has changedis our perspective, but something has in fact changed, else there is no reason for it not to work.
Happy Trouble Shooting :)
Regards,
Bhushan

Similar Messages

  • SP2-0642: SQL*Plus internal error state 2133, context

    Hi Everybody
    I am getting the below wired error msg in SQL Plus when trying to execute a select statment on a external table
    SP2-0642: SQL*Plus internal error state 2133, context 0:0:0
    Unsafe to proceed
    SP2-0642: SQL*Plus internal error state 2221, context 4294967295:4:0
    Unsafe to proceed
    Kindly help me out to solve this issue.
    Thanks & Regards
    Chandra Sekar A.
    [email protected]

    Hi Guys
    Thanks for both of you for your replies.
    The problem is still pertaining.
    Below is the structure I have used to create the external table
    CREATE TABLE "Z_TBN_JXPKIREC"
    "ORG" NUMBER ,
    "ACCT" VARCHAR2(19) ,
    "XD_REC_NBR" NUMBER ,
    "XD_REC_TYPE_KEY" NUMBER ,
    "LOGO" Number ,
    "XD_DATE_LAST_MAINT" NUMBER ,
    "XD_PLAN_NBR" NUMBER ,
    "XD_FILLER_1" VARCHAR2(21) ,
    "XD_DATE_ADDED" NUMBER ,
    "XD_PRIN_BNP" NUMBER ,
    "XD_INT_BNP" NUMBER ,
    "XD_INS_BNP" NUMBER ,
    "XD_NSF_BNP" NUMBER ,
    "XD_SVC_CHG_BNP" NUMBER ,
    "XD_LATE_CHG_BNP" NUMBER ,
    "XD_MEMBER_BNP" NUMBER ,
    "XD_OVLM_BNP" NUMBER ,
    "XD_RECV_BNP" NUMBER ,
    "XD_COLL_BNP" NUMBER ,
    "XD_USER_FEE_1_BNP" NUMBER ,
    "XD_USER_FEE_2_BNP" NUMBER ,
    "XD_USER_FEE_3_BNP" NUMBER ,
    "XD_USER_FEE_4_BNP" NUMBER ,
    "XD_USER_FEE_5_BNP" NUMBER ,
    "XD_USER_FEE_6_BNP" NUMBER ,
    "XD_FILLER_2" NUMBER ,
    "XD_FILLER_3" VARCHAR2(85)
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY LOC_TARGET
    ACCESS PARAMETERS (
         RECORDS FIXED 2500
    CHARACTERSET JA16EBCDIC930
    STRING SIZES ARE IN BYTES
    NOBADFILE
    NODISCARDFILE
    LOGFILE 'XXXX_9.LOG'
    FIELDS
    NOTRIM
    "ORG" POSITION (1:3) INTEGER EXTERNAL ,
    "ACCT" POSITION (4:22) CHAR(19) ,
    "XD_REC_NBR" POSITION (23:25) INTEGER EXTERNAL ,
    "XD_REC_TYPE_KEY" POSITION (26:27) INTEGER EXTERNAL ,
    "LOGO" POSITION (28:30) INTEGER EXTERNAL ,
    "XD_DATE_LAST_MAINT" POSITION (31:34) DECIMAL(7,0) ,
    "XD_PLAN_NBR" POSITION (35:37) INTEGER EXTERNAL ,
    "XD_FILLER_1" POSITION (42:62) CHAR(21) ,
    "XD_DATE_ADDED" POSITION (38:41) DECIMAL(7,0) ,
    "XD_PRIN_BNP" POSITION (63:71) DECIMAL(17,0) ,
    "XD_INT_BNP" POSITION (72:80) DECIMAL(17,0) ,
    "XD_INS_BNP" POSITION (81:89) DECIMAL(17,0) ,
    "XD_NSF_BNP" POSITION (90:98) DECIMAL(17,0) ,
    "XD_SVC_CHG_BNP" POSITION (99:107) DECIMAL(17,0) ,
    "XD_LATE_CHG_BNP" POSITION (108:116) DECIMAL(17,0) ,
    "XD_MEMBER_BNP" POSITION (117:125) DECIMAL(17,0) ,
    "XD_OVLM_BNP" POSITION (126:134) DECIMAL(17,0) ,
    "XD_RECV_BNP" POSITION (135:143) DECIMAL(17,0) ,
    "XD_COLL_BNP" POSITION (144:152) DECIMAL(17,0) ,
    "XD_USER_FEE_1_BNP" POSITION (153:161) DECIMAL(17,0) ,
    "XD_USER_FEE_2_BNP" POSITION (162:170) DECIMAL(17,0) ,
    "XD_USER_FEE_3_BNP" POSITION (171:179) DECIMAL(17,0) ,
    "XD_USER_FEE_4_BNP" POSITION (180:188) DECIMAL(17,0) ,
    "XD_USER_FEE_5_BNP" POSITION (189:197) DECIMAL(17,0) ,
    "XD_USER_FEE_6_BNP" POSITION (198:206) DECIMAL(17,0) ,
    "XD_FILLER_2" POSITION (207:215) DECIMAL(17,0) ,
    "XD_FILLER_3" POSITION (216:300) CHAR(85)
    LOCATION (LOC_TARGET: 'XXXX.DAT')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    and w.r.t. SQL Plus version itz 9.2 and the database server is also 9.2
    Your replies are highly appreciated and thanks for your valuable time.
    Thanks & Regards
    Chandra Sekar A.
    [email protected]

  • R12 SQL*Plus Access - Application Manager

    Hi Guys,
    Finally managed to get my R12 up and running on Linux Redhat 4. I'm trying to get client SQL*Plus access to the database but i'm having a few problems.
    If i remember correctly on 11.5.10.2 as sysadmin you need to log on as Application Manager and change a security setting to allow client based SQL access.
    Is this the same for R12 and where has the application manager dashboard gone?
    Regards
    Glen

    Oracle Applications Dashboard is access via System Administrator responsibility, same as 11.5.10.2 with ATG.H RUP 4.
    There is no tcp.validated_node restriction in R12 Vision, if you have the tnsnames.ora information, you should be able to connect directly from sqlplus. I can connect from multiple hosts to the R12 Vision via sqlplus without any additional setups. Copy your tnsnames.ora entry for the database to the sqlplus oracle home you are trying to connect from.

  • Error : SP2-0642: SQL*Plus internal error state 2286, context 0:0:0

    Hi all
    I got the following error while starting a database.please help me
    SP2-0642: SQL*Plus internal error state 2286, context 0:0:0 Unsafe to proceed

    Hi,
    Please look at the notes.
    SP2-0642: SQL*Plus Internal Error State 2130 ORA-24315: Illegal Attribute Type [ID 1060880.1]
    "SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
    SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
    They are either Windows related or general.
    Regards,

  • Sql*plus worksheet error

    Hi there,
    I'm using Windows 2000 SP3 with Oracle 9i Database Server release 92010
    The sql*pl worksheet work fine several time until now, when I'm clicking on SQL*PL worksheet I'm getting an error message that says:
    SQL*Plus executable may not have been installed in C:\oracle\ora92\bin.
    CreateProcess: C:\oracle\ora92\bin\sqlplus -r 3/nolog
    @c:\oracle\ora92\sysman\config\sqlplusworksheetInit.
    sql error = 193
    Thanks,
    Oded Dror
    Email: [email protected]

    changing the env variable at dos prompt will not change it for other processes. It will be changed
    only while the dos prompt window is running. to change it permanently, you need to right click on
    My Computer" icon and go to properties -> Advance Options. and change the environment values there.

  • Procedure works in sql plus, shows error in sql dev

    I create a package spec and body via a script in sql plus. Following is part of script:
         procedure updateMetricValue(p_metricValueId_in IN number,
         p_username_in IN metricvalue.entryBy%TYPE,
         p_value_in IN VARCHAR2)
         is
         BEGIN
              UPDATE MetricValue
              SET modifiedBy = p_username_in,
                   value = CAST(p_value_in as NUMBER(17,4))
              WHERE id = p_metricValueId_in;
         END updateMetricValue;
    No errors in sqlplus. Runs fine. When I look at the package in SQL Developer 1.0, it shows an error: "expecting identifier" just before the 4 in the line:
    value = CAST(p_value_in as NUMBER(17,4))
    What am I missing?
    Using 9.2.0.1.0 on windows XP as development database.

    I create a package spec and body via a script in sql plus. Following is part of script:
         procedure updateMetricValue(p_metricValueId_in IN number,
         p_username_in IN metricvalue.entryBy%TYPE,
         p_value_in IN VARCHAR2)
         is
         BEGIN
              UPDATE MetricValue
              SET modifiedBy = p_username_in,
                   value = CAST(p_value_in as NUMBER(17,4))
              WHERE id = p_metricValueId_in;
         END updateMetricValue;
    No errors in sqlplus. Runs fine. When I look at the package in SQL Developer 1.0, it shows an error: "expecting identifier" just before the 4 in the line:
    value = CAST(p_value_in as NUMBER(17,4))
    What am I missing?
    Using 9.2.0.1.0 on windows XP as development database.

  • SQL Plus REport Error

    Hi,
    There is an SQL Plus REport which was developed by someone else a couple of years ago. And now i pulled the code to make a few changes in the columns and put it back.
    Before i made the change i ran the report from the Oracle applications and there was no error.
    But for some reason when i changed it and ran it from applications, there is an error that shows up:
    EXEC FND_CONC_STAT.COLLECT
    ERROR at line 163:
    ORA-00933: SQL command not properly ended
    And so i reverted back to the original code and the same error shows up.
    Can someone tell me why this is error is showing up?
    This is the sql code for the report:
    SET ECHO OFF
    SET SHOW OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET HEADING OFF
    SET PAGESIZE 0
    SET LINESIZE 450
    --WHENEVER SQLERROR EXIT;
    DEFINE vfrmdte = '&&1';
    DEFINE vtodte = '&&2';
    DEFINE vjobnum = '&&3';
    DEFINE vorgid = '&&4';
    select substr(we.wip_entity_name,1,10)||';'||
    substr(msi.segment1,1,10)||';'||
    rc.customer_number||';'||
    rsu.location||';'||
    substr(sl.cust_po_number,1,25)||';'|| --changed sh to sl
    --sh.ordered_date||';'||
    sl.creation_date||';'||----extra colmn added
    sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
    REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
    sl.request_date||';'||
    substr(dcgv.segment2,1,15)||';'||
    substr(dgv.SEGMENT1,1,20)||';'||
    sh.order_number||';'||
    substr(dcgv.segment3,1,15)||';'||
    substr(dcgv.segment4,1,25)||';'||
    substr(dscv.segment2,1,20)||';'||
    substr(dscv.segment3,1,10)||';'||
    wdj.start_quantity||';'||
    wdj.quantity_completed||';'||
    sl.order_quantity_uom||';'||
    wdj.completion_subinventory||';'||
    wdj.completion_locator_id||';'||
    wdj.primary_item_id||';'||
    wdj.wip_entity_id||';'||
    wdj.scheduled_start_date||';'||
    wdj.status_type||';'||
    substr(ml.meaning,1,30)||';'||
    ml.lookup_code||';'||
    md.demand_source_header_id||';'||
    substr(md.demand_source_line,1,15)||';'||
    mso.sales_order_id||';'||
    substr(mso.segment1,1,15)||';'||
    substr(mso.segment2,1,25)||';'||
    substr(mso.segment3,1,20)||';'||
    mic.category_set_id||';'||
    mic2.category_set_id||';'||
    dgv.category_id||';'||
    dcgv.category_id||';'||
    sh.header_id||';'||
    sh.order_type_id||';'||
    sl.line_number||';'||
    sl.line_id||';'||
    sl.inventory_item_id||';'||
    substr(sl.attribute11,1,20)||';'||
    msi.fixed_lot_multiplier||';'||
    substr(dscv.segment1,1,20)||';'||
    wdj.organization_id||';'||
    rc.customer_id||';'||
    rsu.site_use_id||';'||
    sl.LAST_UPDATE_DATE------extra colmn added
    from
    apps.wip_entities we ,
    apps.wip_discrete_jobs wdj ,
    apps.mfg_lookups ml ,
    --apps.wip_so_allocations wsa ,                                                     
    apps.mtl_demand md, --inv.mtl_demand md ,                                                     
    apps.mtl_sales_orders mso ,
    apps.mtl_system_items_b msi,--inv.mtl_system_items_b msi ,
    apps.mtl_item_categories mic ,
    apps.mtl_item_categories mic2 ,
    apps.mtl_item_categories mic3 ,
    apps.mtl_category_sets mcs ,
    apps.mtl_category_sets mcs2 ,
    apps.mtl_category_sets mcs3 ,
    apps.MTL_CATEGORIES_B dgv,--INV.MTL_CATEGORIES_B dgv ,
    apps.MTL_CATEGORIES_B dcgv ,
    apps.MTL_CATEGORIES_B dscv ,
    apps.oe_order_headers_all sh, --so_headers_all sh ,                                                              
    apps.oe_order_lines_all sl, --so_lines_all sl ,                                                                
    apps.oe_transaction_types_tl sot, --so_order_types_all sot ,                                                         
    apps.ra_customers rc ,
    apps.ra_site_uses_all rsu
    where
    we.wip_entity_id = wdj.wip_entity_id
    and wdj.firm_planned_flag in (1,2)
    and wdj.status_type = ml.lookup_code
    and ml.lookup_type = 'WIP_JOB_STATUS'
    and md.supply_source_header_id = we.wip_entity_id
    -- and sh.header_id = mso.sales_order_id
    and mso.segment1 = sh.order_number
    and mso.segment2 = sot.name
    and sot.transaction_type_id = sh.order_type_id
    and sh.sold_to_org_id = rc.customer_id
    and sh.ship_to_org_id = rsu.site_use_id
    --DUPLICATE and sh.order_type_id = sot.order_type_id                                     
    and sl.header_id = sh.header_id
    and sl.line_id = md.demand_source_line
    and sl.inventory_item_id = msi.inventory_item_id
    and msi.organization_id = wdj.organization_id
    and msi.inventory_item_id = mic.inventory_item_id
    and msi.organization_id = mic.organization_id
    and mic.category_set_id = mcs.category_set_id
    and mcs.category_set_name = 'DWC Groups'
    and dgv.category_id = mic.category_id
    AND dgv.STRUCTURE_ID = 50109
    and msi.inventory_item_id = mic2.inventory_item_id
    and msi.organization_id = mic2.organization_id
    and mic2.category_set_id = mcs2.category_set_id
    and mcs2.category_set_name = 'DWC COLORS'
    and dcgv.category_id = mic2.category_id
    AND dcgv.STRUCTURE_ID = 50111
    and msi.inventory_item_id = mic3.inventory_item_id
    and msi.organization_id = mic3.organization_id
    and mic3.category_set_id = mcs3.category_set_id
    and mcs3.category_set_name = 'DWC Ship'
    and dscv.category_id = mic3.category_id
    AND dscv.STRUCTURE_ID = 50112
    AND to_date(to_char(sl.request_date,'DD-MON-YYYY'),'DD-MON-YYYY') between
    nvl(to_date(to_char('&vfrmdte','DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
    and nvl(to_date(to_char('&vtodte' ,'DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
    AND we.wip_entity_name = NVL('&vjobnum', we.wip_entity_name)
    AND we.organization_id = NVL('&&4',we.organization_id)
    AND wdj.status_type IN (1,3)
    GROUP BY
    substr(we.wip_entity_name,1,10)||';'||
    substr(msi.segment1,1,10)||';'||
    rc.customer_number||';'||
    rsu.location||';'||
    substr(sl.cust_po_number,1,25)||';'|| --changed from sh to sl
    --sh.ordered_date||';'||
    sl.creation_date||';'||
    sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
    REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
    sl.request_date||';'||
    substr(dcgv.segment2,1,15)||';'||
    substr(dgv.SEGMENT1,1,20)||';'||
    sh.order_number||';'||
    substr(dcgv.segment3,1,15)||';'||
    substr(dcgv.segment4,1,25)||';'||
    substr(dscv.segment2,1,20)||';'||
    substr(dscv.segment3,1,10)||';'||
    wdj.start_quantity||';'||
    wdj.quantity_completed||';'||
    sl.order_quantity_uom||';'||
    wdj.completion_subinventory||';'||
    wdj.completion_locator_id||';'||
    wdj.primary_item_id||';'||
    wdj.wip_entity_id||';'||
    wdj.scheduled_start_date||';'||
    wdj.status_type||';'||
    substr(ml.meaning,1,30)||';'||
    ml.lookup_code||';'||
    md.demand_source_header_id||';'||
    substr(md.demand_source_line,1,15)||';'||
    mso.sales_order_id||';'||
    substr(mso.segment1,1,15)||';'||
    substr(mso.segment2,1,25)||';'||
    substr(mso.segment3,1,20)||';'||
    mic.category_set_id||';'||
    mic2.category_set_id||';'||
    dgv.category_id||';'||
    dcgv.category_id||';'||
    sh.header_id||';'||
    sh.order_type_id||';'||
    sl.line_number||';'||
    sl.line_id||';'||
    sl.inventory_item_id||';'||
    substr(sl.attribute11,1,20)||';'||
    msi.fixed_lot_multiplier||';'||
    substr(dscv.segment1,1,20)||';'||
    wdj.organization_id||';'||
    rc.customer_id||';'||
    rsu.site_use_id||';'||
    sl.LAST_UPDATE_DATE ----extra colmn added

    Then we reverted back to the original and there it was the same error.This doesn't seem possible to me. Maybe you just didn't use the exact original script. Other Charset, other linebreaks, UNIX2DOS conversion, etc.
    So debugging the error seems useful to me. At least you got an error message and could start working up on that.
    On the other hand maybe it would be better to ask this question in the Applications Forum. I think this is this one: Business Intelligence Applications
    Regards
    Sven

  • When connecting to database in SQL* plus giving Error

    hi,
    I am using Oracle 10g. My problem is when i connecting to database in Server through SQL * Plus giving the Error:
    ORA-12514: TNS:listerner does not currently know of service requested in connect descriptor.
    Why this is happening i don't know. I created listener also. But no use. How to solve this can any tell me pls... ! .
    Thank u...!

    hi,
    Thank u bang for u r reply. It is not working sir. I added the listener as follows:
    # listener.ora Network Configuration File: D:\oracle10g\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = OVSL06)
    (ORACLE_HOME = D:\oracle10g)
    (SID_NAME = OVSL06)
    (SID_DESC =
    (GLOBAL_DBNAME = OVSL06)
    (ORACLE_HOME = D:\oracle10g)
    (SID_NAME = OVSL06)
    I typed the following commands in command prompts
    C:\>lsnrctl
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 30-MAY-2007 16:29
    :14
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> stop
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
    The command completed successfully
    LSNRCTL> start
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is D:\oracle10g\network\admin\listener.ora
    Log messages written to D:\oracle10g\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
    ction
    Start Date 30-MAY-2007 16:29:28
    Uptime 0 days 0 hr. 0 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle10g\network\admin\listener.ora
    Listener Log File D:\oracle10g\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    same error is getting as i am getting previously. Tell me solution pls....!
    Thank u...!

  • Error al ejecutar SQL plus y error ORA-03114

    Instali Oracle 9i 9.2 cliente sobre windows 98 para conectarme a la base Oracle 7.3.4. La instalacisn fue exitosa y la configuracion del Net tambiin results exitosa, sin embargo, al ejecutar el sql plus me envma un error y hace referencia a product_user_profile, ademas, no puedo ejecutar mi aplicacisn en VB enviando el error ORA-03114: no conectado a ORACLE.
    ?Qui me falta por configurar?.
    Al instalar Oracle 8i no presenta ningun error, funcionando todo exitosamente.

    Babblefish believes that your question translates to English as:
    "I installed Oracle 9i 9,2 client on Windows 98 to connect me to the base Oracle 7.3.4. The installation was successful and the configuration of the Net also was successful, nevertheless, when executing the SQL extra sends an error to me and makes reference to product_user_profile, in addition, I cannot execute my application in VB sending the Ora-03114 error: not connected to ORACLE. What I need to form. When installing Oracle 8i does not present/display ningun successful error, working everything."
    Assuming that's a proper translation, there are a couple of points:
    - The 9.2 client ins't certified to connect to a 7.3.4 database. There may well be random issues with this configuration.
    - product_user_profile indicates to me that your DBA may have set something up that prevents certain users/machines/applications/etc. from logging into the database. I'd try speaking with your DBA to see whether this is the case, and what you need to do to have the system changed.
    Justin

  • Logging into ORACLE 9I using SQL*PLUS.TNS Error

    I have installed Oracle 9i for windows and am trying to login using SQL*PLUS
    user: system
    pwd: manager
    Host String: BHURU
    It says TNS could resolve service name.
    I have all the services running in the admin monitor.
    Am I missing something? Please advise.

    Can you post your tnsnames.ora file contents and listener.ora contents here?
    There may be tons of things wrong with the error actually,
    ORA-12154:     TNS:could not resolve the connect identifier specified
    Cause:     A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
    Action:     
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
    - Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is accessible.
    - Verify that the net service name or database name used as the connect identifier is configured in the directory.
    - Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Make sure the host, port and service name specified are correct.
    - Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.
    HTH
    Aman....
    Edited by: Aman.... on Oct 7, 2008 5:46 PM
    Added error info

  • Within SQL*Plus, get error code of host command

    Hello everyone,
    I am currently writing an SQL*Plus (Oracle 10g) that has a big logic and somewhere in the middle, I have to call a host command, which is an C++ function.
    I call it using
    SQL> HOST cd
    SQL> HOST cd bins
    SQL> HOST ./my_procedureBut, I need to get the return code of my procedure to see if it finished correctly?
    I checked [the manual|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch4.htm#sthref883] but they don't say anything about return codes.
    When I try:
    SQL> host echo $?
    0It always returns 0, even if I SIGTERM or SIGKILL the child process. Anyone has an idea on how is it possible to retrieve the return code?
    Thanks

    user13117585 wrote:
    Hello guys and thanks for your answers.
    Let me tell you a little more about my problem... I have a 3 steps process. The first step is done in the database. It updates a few tables. Then, when that step successfully ends, I need to start a second step. That second step is done on the server where I have my SQL Plus session. Because I actually have 2 different machines. The first one is where the database is running and the second one where I have SQL Plus (Oracle client 10g) and the program that I have to start in this second step. Then, once this process is finished and his return code is 0, then I have to execute the third step in the database.
    Basically, I wanted to have something like:
    VARIABLE returnCode
    BEGIN
    :returnCode := some_package.do_step_1;
    -- do whatever I want with returnCode.
    EXCEPTION WHEN ...
    END;
    HOST execute_external_program
    BEGIN
    IF external_job_succeed THEN
    some_package.do_step_3
    END IF;
    EXCEPTION...
    END;
    /I wanted to use the Oracle Scheduler to create an EXTERNAL JOB. The problem is that the external program is not deployed on the same machine as the database.I know that on 11g, we have external remote jobs. But I'm on 10g and I have no agent on the server where the external program is. So, what are my options? SQL*Plus and the host command... Or I can also write a bash script to do that... Or any hight level programming language...
    Any other idea?
    Thanks again guys,move functionality of second step into PL/SQL procedure resident inside DB.

  • SQL*Plus Script Errors

    My scripts all contain relative file paths e.g.
    @@../directory1/file1.sql
    Is there a way of setting the current working directory in SQL Developer to make this work?
    In SQL*Plus for windows you simply opened the file but this does not seem to work.

    As I said, run them in SQL*Plus.
    SQL*Developer is a development tool and database browser, not a SQLPLus clone.
    It has its own methods of extracting data which may or may not suit your output requirements. You don't need col statements as much if you are viewing data in a grid, for example. [1]
    I don't know what you use the sqlplus scripts for, but they could be replaced over time with some combination of Apex, SQLDeveloper reports and straight sqldeveloper queries.
    As for SQL*PLus being greyed out on the menu, there are some known issues about that. I think one of them is that you need to be using tns connections. However, the sqlplus menu item is gone in sqldeveloper 1.5 so don't rely on it. Learn to run if from the command line.
    [1] Despite that, I would arguethat SQLDeveloper should support all (with tiny exceptions) SQLPlus commands. Not because I see it as a sqlplus replacement, but so it can be used to develop scripts which can then be run in SQL*Plus without amendment (without the hassle of switching back and forth during development)

  • SQL Database access error from remote client

    Trying to to select database server in of SQL 2008 Dababase Server  from remote access computer client to access database for Accounting /PM Software and keep getting this message -Error 27502 Could Not Connect Microsoft SQL Server  [DBNETLIB] Conection
    Open [Connect().] Specified SQL Server not Found(6). I can log on to server with no problem but when I try to set up program to access I cannot. Is there another process I missing. I tried different porting but nothing. I have run query and it states the Computer
    name as: My_Server ,Instance Name Value as: PCMX, and Port Value as ( any) 51964. But It does not work when I enteer it as : My_Server\Pcmx,51964 but I get this error. Help Please, Loosing my mind. Thanks in advance.
    Thanks
    Woodrow

    Hi,
    Try to check the followings please:
    Check the enabled network protocols on teh SQL Server by using SQL Server Configuration Manager. Make sure the preferred protocol (TCP/IP) is enabled)
    Make sure the client computer has the preferred network protocol enabled by using cliconfg.exe (both 32 and 64 bit)
    If you are using naed instance and dynamic port, make sure SQL Browser Service enabled. 
    Make sure the firewall allows the port you are using on both client and SQL Server.
    I hope it helps.
    János
    There are 10 type of people. Those who understand binary and those who do not.
    My Blog |
    Hire Me

  • Error 45 initializing SQL*Plus

    Hi All,
    When I try to execute a create view script, I encounter a "Error 45 initializing SQL*Plus Internal Error".
    When googled for it. The BUG 3039738 is associated with this error message.
    My question is, When the Metalink has explained the scenario in BUG description that. This error is encountered when a shell script is trying to invoke the sqlplus.
    I donno why I am getting it when I try to run a SQL create view script.
    Details:
    OS:Red Hat Linux 5.2
    DB:Oracle 10g (10.2.0.4)
    SQL> @EXP_HR_UK_EMPLOYEE_DETAIL_V.txt
    Error 45 initializing SQL*Plus
    Internal errorRegards,
    SAM

    Hi Robert,
    We use eChangeMan for scripts transfer.
    The scripts are uploaded into eChangeMan and then sent for approval. Once Approved. The eChangeMan automatically transfers the scripts to specific location on server, from where we execute them.
    In one link I found this
    Cause: The issue is identified as Bug:3039738. This typically reproduces when SQL script file is on a OCFS filesystem created on shared device (for example, SAN storage).
    Fix: The only workaround, until bug is fixed, is to copy the SQL script file to a local disk (in case of Linux, a ext3 filesystem).
    But this is the first time I have encountered this error. When i did a vi on script, It looks fine, without any spl characters.
    Regards,
    SAM

  • SQL plus and  Spatial tables

    I have some spatial tables in 10g. I can use 'select query' on non spatial attributes but if try
    select * or
    select geom then my SQL plus gives error ::
    Program Error - sqlplusw.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created.
    <Cancel>
    But I am able to use isqlplus without any errors.
    Earlier SQL plus used to work fine. I don't understand what happened to it in between.
    How can I bring my SQL plus working again.

    I created a copy for a spatial table using.
    create table copy as select * from original, and it was successful .
    Other than that I haven't done anything other than select queries.

Maybe you are looking for

  • I cannot open my mail box in the mail app

    Hi, I cannot open my mailbox in the mail app on my I pad 3. It is asking to verify the email adres for my apple ID. When I log in again it still says I I have to verify myself. I dont understand it any more. Can somebody help me?

  • Batch Scheduler

    Hi , I am trying to schedule a custom Java batch program using CCB Batch scheduler . As I tried , I did not have any event activation alorithm to specify in WokFlow Event Type . So I am creating an alorithm first . While doing this , Ain lgorithm Typ

  • I forgot all my security answers and I've forgotten my second email

    I forgot all my security answers and I've forgotten my second email and I want to buy apps

  • Doubt in Transport Route

    I have installed a SAP System with DEV, QA and PROD in Windows Server + MS SQL Database The Transport tool has been configured as DEV> QA> PROD The TRANSDIR =//<DEV Server name>/sapmnt/trans The Domain Controller is DEV System. The DIR_TRANS in DEV S

  • Reg :: Concurrent manager is not coming up

    Hi Folks, The CM is not coming up .Below is some points. 1. adcmctl.sh start apps/pwd adcmctl.sh: exiting with status 0 But stil it is dowm 2 .i stopped and started but no use. 3.DB - 10.2.0.2.0 EBS -11.5.10.2 Kindly advice to do some other way to br