Connect via sqlplus to sys

I'm trying to connect to sys via sqlplus, but i cannot.
I can connect to other schema like HR but not to SYS. I'm sure the password is correct because via sql developer for example.
Can you help me please?

I typed:
net localgroup ORA_DBA
and I get:
Alias name   ORA_DBA
Comment    Furgiuele
Membri
NT AUTHORITY\SYSTEM
Esecuzione comando riuscita.
what does it mean?
my sqlnet.ora:
*# sqlnet.ora Network Configuration File: C:\oracle\product\11.1.0\db_1\network\admin\sqlnet.ora*
*# Generated by Oracle configuration tools.*
*# This file is actually generated by netca. But if customers choose to*
*# install "Software Only", this file wont exist and without the native*
*# authentication, they will not be able to connect to the database on NT.*
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

Similar Messages

  • Unable to connect to sqlplus .. sys as sysdba .. No listener in Oracle 11G

    Hi ,
    I have installed Oracle 11.2.0 . When connecting to sqlplus with sys as sysdba . Getting error as NO listener .
    I started listener . But finally getting the message as
    The listener supports no services
    The command completed successfully
    Kindly help

    I am getting the same message
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oracledb/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracledb.example.com)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    I don't find the services entry here .

  • Only 'oracle' account can connect via sqlplus

    Currently, only the linux oracle account can connect to the
    server via sqlplus. A have put an exact copy of oracle's
    .profile script into other accounts home directories, and those
    accounts belong to the linux dba group. When another account
    starts sqlplus, they are prompted with login and password, and
    the the following error occurs:
    ORA-01034 ORACLE NOT AVAILABLE
    But if I login as 'oracle', i can connect no problem. I always
    start the server under the oracle account with the dbstart
    script.
    I am probably overlooking something stupid, any ideas?
    Please email me directly in addition to the post.
    Thanks,
    Randon Ethan Loeb
    [email protected]
    null

    There is nothing to do with your .profile, default password, etc.
    After Oracle installation via the installer (orainst), have you
    run root.sh? Root.sh will set the setuid/setgid bit on for the
    file $ORACLE_HOME/bin/oracle. If it is not set, only the owner
    (i.e. oracle/dba) can connect.
    Fix the problem by rerun root.sh. If it doesn't help, simply run
    the commands:
    $ chown oracle:dba $ORACLE_HOME/bin/oracle
    $ chmod ug+s $ORACLE_HOME/bin/oracle
    Kevin (guest) wrote:
    : Not sure if this makes a difference, but I use bash (many
    : distributions default shell, especially redhat) and I believe
    the
    : user's profile for that shell is .bash_profile. Also, try sys
    as
    : your default password for the production release, for some
    : strange reason, that's what my default password was.
    : Kevin
    : Ronald Jeninga (guest) wrote:
    : : Hi,
    : : did you verify the success of the dbstart-script? i.e. are
    all
    : : ORACLE processes running?
    : : % ps ax | grep oracle
    : : ... some output ...
    : : What happens if you start ORACLE manually?
    : : % svrmgrl
    : : > connect internal
    : : > startup
    : : ... some output ...
    : : > quit
    : : do you provide the correct user/password combination?
    : : % sqlplus scott/tiger # might be different on your system
    : : # if you instaled the db together with
    : : # the rest, scott/tiger probably
    exists
    : : if you connect as ORACLE, can you use your DB?
    : : % svrmgrl
    : : > connect internal
    : : > select * from dual;
    : : ... some output ...
    : : these are my first thoughts, might be valuable might be not.
    : : Ronald
    : : Randon Ethan Loeb (guest) wrote:
    : : : Currently, only the linux oracle account can connect to the
    : : : server via sqlplus. A have put an exact copy of oracle's
    : : : .profile script into other accounts home directories, and
    : those
    : : : accounts belong to the linux dba group. When another
    account
    : : : starts sqlplus, they are prompted with login and password,
    : and
    : : : the the following error occurs:
    : : : ORA-01034 ORACLE NOT AVAILABLE
    : : : But if I login as 'oracle', i can connect no problem. I
    : always
    : : : start the server under the oracle account with the dbstart
    : : : script.
    : : : I am probably overlooking something stupid, any ideas?
    : : : Please email me directly in addition to the post.
    : : : Thanks,
    : : : Randon Ethan Loeb
    : : : [email protected]
    null

  • Cannot connect via sqlplus as sysdba

    Hi,
    I have Oracle 10g setup on Redhat Enterprise v4. I was able to do everything I needed until I rebooted. Now I can't connect using sqlplus. I get error ora-01031 when I type "connect system/*** AS SYSDBA" Anyone know what why this is happening?
    Any help would be appreciated.
    Thanks,
    Adam

    According to me this should be dba, why its showing the group as oracle?I'm not sure why it's showing up as oracle. Do I need to change this? As far as I can tell, oracle is a group that no user is a member of.
    Did you ever able make connection using / as sysdba?On this computer, I don't think I ever logged in as sysdba other than just as a system user.
    What group did you specify while installing the software?groupadd oinstall
    groupadd dba
    groupadd oper
    usermod -g oinstall -G dba oracle
    Pretty much followed http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRedHatAS4.php and the oracle docs on installation.
    Message was edited by:
    user529261

  • Oracle type error using cygwin on windows to connect via sqlplus to oracle.

    Hi,
    Found already some information on the internet regarding this topic but wasn't able to solve it so far.
    So all informartion, tips are more then welcome.
    Scripts runs with admin account 'DBA_Services'
    Sqlplus connection sqlplus sys/***@oracle_sid
    Thx already
    OWBrun Script (v2.0)
    Enviroment : GAMMA
    Hostname : pvspdb04
    Database : sgviv5
    Date : 05Nov2010
    Time : 15:58:21
    Schema : dwhins
    RuntimeRep: OWBRUN
    Mapping : INS_DLITE_CTRL_JOB_03
    Location : DNA_STAGING_LOCATION
    Type load : PLSQL
    Custom par: ,
    Identifier: INS_DLITE_CTRL_JOB_03_20101105155820
    Logfile : /ING/DWH/ora_dwh_loader/log/dwhins/owbrun_dwhins_INS_DLITE_CTRL_JOB_03_20101105155820.log
    === Check DB connect ===
    05-NOV-2010 15:58:22
    DB connection test is OK (attemps=1)
    === OWB RUN ===
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Nov 5 15:58:22 2010
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options
    SQL> SQL> SQL> SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    Session altered.
    Elapsed: 00:00:00.00
    SQL> SQL> SQL> SQL> SQL>
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> ++ Execute owbruntask dwhins.INS_DLITE_CTRL_JOB_03
    SQL>
    Stage 1: Decoding Parameters
    | location_name=DNA_STAGING_LOCATION
    | task_type=PLSQL
    | task_name=INS_DLITE_CTRL_JOB_03
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
    ORA-06512: at line 267
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options Exitcode = 33 Error : OWBRUN INS_DLITE_CTRL_JOB_03
    Date : 05Nov2010
    Time : 15:58:24

    This are the most important scripts:
    DLITE_Sub1_201.ksh
    #!/bin/ksh
    #set -x
    cp /ING/DWH/ora_dwh_loader/conf/stgins.cfg.sgviv5 /ING/DWH/ora_dwh_loader/conf/stgins.cfg
    export FPATH=/ING/IIB/DNA/Interfaces/Scripts
    export FINPATH=/ING/IIB/DNA/In/
    export FOUTPATH=/ING/IIB/DNA/Out/
    #load script into memory
    autoload DLITE_fct_JS
    #load script into memory
    #autoload DNA_fct_JS_EXEC
    JS_SCRIPT=`basename $0`
    JS_ID=201
    JS_TSK_ID=001;JS_TSK_NAM="FP_START_Remove_Files"
    echo "\nstart subtask '${JS_TSK_NAM}"
    cd /ING/IIB/DNA/Out
    rm -f DLITE_CAPSIL_CODE_*.CSV
    rm -f DLITE_CAPSIL_VAL_*.CSV
    rm -f DLITE_VARIA_CODE_*.CSV
    rm -f DLITE_VARIA_VAL_*.CSV
    echo "\nend subtask '${JS_TSK_NAM}"
    JS_TSK_ID=002;JS_TSK_NAM="F_DLITE_01_CODE_DESC"
    cd /ING/IIB/DNA/Interfaces/Scripts
    echo "\nstart subtask '${JS_TSK_NAM}"
    ksh DLITE_owbrun.ksh -s dwhins -t PROCESS -m F_DLITE_01_CODE_DESC -l LOC_DNA_FLOW_STORE -c ","
    JS_TSK_STA=$?
    echo "\nverifying correct execution of subtask '${JS_TSK_NAM}"
    if [ ${JS_TSK_STA} -ne 0 ] ; then
    ksh DLITE_owbrun.ksh -s dwhins -t PLSQL -m INS_DLITE_CTRL_JOB_03 -l DNA_STAGING_LOCATION -c ","
    exit 1
    fi
    echo "\nend subtask '${JS_TSK_NAM}"
    JS_TSK_ID=002;JS_TSK_NAM="Check header/footer of files"
    echo "\nstart subtask '${JS_TSK_NAM}"
    ksh DLITE_CheckHeaderFooter.ksh
    JS_TSK_STA=$?
    if [ ${JS_TSK_STA} -ne 0 ] ; then
    exit 1
    fi
    echo "\nend subtask '${JS_TSK_NAM}"
    DLITE_owbrun.ksh
    . /ING/IIB/DNA/Interfaces/Scripts/DLITE_ods_set_env.ksh
    fout_melding()
         echo "Error : ${1}" | tee -a ${LOGFILE}
         echo " Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
         echo " Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    if [ -s ${LOGFILE:=/tmp/foutmelding} ]
    then
    cat ${LOGFILE} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    else
    echo "Error : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    fi
    rm -f ${STATSFILE}
    waarschuwing()
         echo "Warning : ${1}" | tee -a ${LOGFILE}
         echo " Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
         echo " Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    if [ -s ${LOGFILE:=/tmp1/foutmelding} ]
    then
    echo ${1} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    else
    echo "Warning : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
    fi
    USAGE="Usage : owbrun.ksh -s target_schema -t type -m mapping -l location -c custom_param -p system_param [-i ident]"
    umask 022
    ORVERSION=2.0
    set -- `getopt s:t:m:c:p:i:l: $*`
    if [ $? -ne 0 ]
    then
         echo ${USAGE}
         exit 2
    fi
    while [ $# -gt 0 ]
    do
    case ${1} in
         -s)
              SCHEMA=${2}
              shift 2
         -t)
              LOADTYPE=${2}
              shift 2
         -l)
              LOCATION=${2}
              shift 2
         -m)
              MAPPING=${2}
              shift 2
         -i)
              IDENT=${2}
              shift 2
         -c)
              CUSTPARAM=${2}
              shift 2
              shift
              break
    esac
    done
    export LISTFILENAMES=${*}
    if [ "${SCHEMA}" = "" ]
    then
         fout_melding "Target Schema is mandatory"
         echo ${USAGE}
         exit 1
    fi
    if [ "${MAPPING}" = "" ]
    then
         echo "Error : Mapping is mandatory"
         echo ${USAGE}
         exit 1
    fi
    if [ "${LOCATION}" = "" ]
    then
         echo "Error : Location is mandatory"
         echo ${USAGE}
         exit 1
    fi
    MAPPING=$(echo ${MAPPING} | tr [:lower:] [:upper:])
    if [ "${LOADTYPE}" = "" ]
    then
         echo "Error : Type (PLSQL/SQLLDR/PROCESS) is mandatory"
         echo ${USAGE}
         exit 1
    fi
    LOADTYPE=$(echo ${LOADTYPE} | tr [:lower:] [:upper:])
    if [ "${LOADTYPE}" != "PLSQL" -a "${LOADTYPE}" != "SQLLDR" -a "${LOADTYPE}" != "PROCESS" ]
    then
         echo "Error : Illegal type ${LOADTYPE}"
         echo ${USAGE}
         exit 1
    fi
    export SCHEMA=$(echo ${SCHEMA} | tr [:upper:] [:lower:])
    export UPSCHEMA=$(echo ${SCHEMA} | tr [:lower:] [:upper:])
    # Call the Configuration script
    . /ING/DWH/ora_dwh_loader/bin/config.ksh -s ${SCHEMA}
    exitcode=$?
    if [ $exitcode -ne 0 ]
    then
         echo "Error : during config.ksh"
         exit ${exitcode}
    fi
    if [ "${IDENT}" = "" ]
    then
         IDENT=${MAPPING}_$(date +%Y%m%d%H%M%S)
         CUSTPARAM=$(echo ${CUSTPARAM} | awk -f ${BASEPATH}/bin/owbrun.awk "datum=$(date +%Y%m%d%H%M%S)")
    fi
    if [ "${RUNREP}" = "" ]
    then
         fout_melding "Runtime Repository is mandatory (see ${SCHEMA}.cfg)"
         echo ${USAGE}
         exit 1
    fi
    export BPIDFILE=${TMPDRIVE}/owbrun_${SCHEMA}_${IDENT}_$$.pidlist
    export LOGFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.log
    export STATSFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.stats
    echo "OWBrun Script (v${ORVERSION})" > ${LOGFILE}
    echo "Enviroment : ${APPL_ENV}" >> ${LOGFILE}
    echo "Hostname : $(hostname)" >> ${LOGFILE}
    echo "Database : ${ORACLE_SID}" >> ${LOGFILE}
    echo "Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
    echo "Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    echo "Schema     : ${SCHEMA}" >> ${LOGFILE}
    echo "RuntimeRep: ${RUNREP}" >> ${LOGFILE}
    echo "Mapping : ${MAPPING}" >> ${LOGFILE}
    echo "Location : ${LOCATION}" >> ${LOGFILE}
    echo "Type load : ${LOADTYPE}" >> ${LOGFILE}
    echo "Custom par: ${CUSTPARAM}" >> ${LOGFILE}
    echo "Identifier: ${IDENT}" >> ${LOGFILE}
    echo "Logfile     :     ${LOGFILE}" >> ${LOGFILE}
    echo " " >> ${LOGFILE}
    echo "Hostname : $(hostname)" > ${STATSFILE}
    echo "Database : ${ORACLE_SID}" >> ${STATSFILE}
    echo "Schema     : ${SCHEMA}" >> ${STATSFILE}
    echo "Mapping : ${TABLENAME}" >> ${STATSFILE}
    echo "Period : P${PERIOD}" >> ${STATSFILE}
    echo "Type load : ${LOADTYP}" >> ${STATSFILE}
    echo "Identifier: ${IDENT}" >> ${STATSFILE}
    echo "Start     : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
    echo "=== Check DB connect ===" >> ${LOGFILE}
    ${BASEPATH}/bin/chk_db_connect.ksh >> ${LOGFILE}
    exitcode=${?}
    if [ $exitcode -ne 0 ]
    then
         fout_melding "Could NOT connect to database ${ORACLE_SID}"
         exit ${exitcode}
    fi
    echo "=== OWB RUN ===" >> ${LOGFILE}
    sqlplus 'system/*****' <<-EOF >> ${LOGFILE}
    set timing on
    set serveroutput on
    alter session set sort_area_size=2621440;
    alter session set hash_area_size=2621440;
    alter session set skip_unusable_indexes=true;
    alter session enable resumable timeout ${ResumableTimeout} name 'OwbRunTask ${UPSCHEMA}.${MAPPING}';
    set pages 0
    set timing on
    set serveroutput on
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    exec dbms_application_info.set_module('OWBRUNTASK','${UPSCHEMA}.${MAPPING}');
    Prompt ++ Execute owbruntask ${SCHEMA}.${MAPPING}
    declare
    p_repos_owner varchar2(100):= '${RUNREP}';
    p_location_name varchar2(100):='${LOCATION}';
    p_task_type varchar2(100) :='${LOADTYPE}';
    p_task_name varchar2(100) default '${MAPPING}';
    p_system_params varchar2(100) default '","';
    p_custom_params varchar2(200) default '${CUSTPARAM}"';
    p_oem_friendly number default 0;
    l_oem_style boolean := case (p_oem_friendly)
    when 0 then false
    else true
    end ;
    l_audit_execution_id number; -- Audit Execution Id
    l_audit_result number := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE; -- Result Code
    l_audit_result_disp varchar2(64) := 'FAILURE'; -- Result Display Code
    l_task_type_name varchar2(64); -- Task Type Name
    l_task_type varchar2(64); -- Task Type
    l_task_name varchar2(64); -- Task Name
    l_location_name varchar2(64); -- Location Name
    l_return number ;
    fout exception;
    opgepast exception;
    p_parameters varchar2(4000);
    p_parameter_kind number;
    l_anchor_offset number := 1;
    l_start_offset number := 1;
    l_equals_offset number;
    l_comma_offset number;
    l_value_offset number;
    l_esc_offset number;
    l_esc_count number;
    l_esc_char varchar2(4);
    l_parameter_name varchar2(4000);
    l_parameter_value varchar2(4000);
    begin
    p_custom_params:=replace(p_custom_params,'~',' ');
    execute immediate ('alter session set current_schema = ' || p_repos_owner) ;
    -- Initialize Return Code
    l_return := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE;
    -- Import Parameters
    dbms_output.put_line('Stage 1: Decoding Parameters');
    l_task_type_name := p_task_type ;
    if UPPER(l_task_type_name) = 'PLSQL'
    then
    l_task_type := 'PLSQL';
    elsif UPPER(l_task_type_name) = 'SQL_LOADER'
    then
    l_task_type := 'SQLLoader';
    elsif UPPER(l_task_type_name) = 'PROCESS'
    then
    l_task_type := 'ProcessFlow';
    else
    l_task_type := l_task_type_name;
    end if;
    l_task_name := p_task_name ;
    l_location_name := p_location_name ;
    dbms_output.put_line('| location_name=' || l_location_name);
    dbms_output.put_line('| task_type=' || l_task_type);
    dbms_output.put_line('| task_name=' || l_task_name);
    -- Decode Parameters
    begin
    -- Prepare Execution
    dbms_output.put_line('Stage 2: Opening Task');
    l_audit_execution_id := ${RUNREP}.wb_rt_api_exec.open(l_task_type, l_task_name, l_location_name);
    dbms_output.put_line('| l_audit_execution_id=' || to_char(l_audit_execution_id));
    commit;
    -- Override Parameters
    p_parameters:=p_system_params;
    p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_SYSTEM;
    l_anchor_offset:= 1;
    l_start_offset:= 1;
    l_equals_offset:=0;
    l_comma_offset:=0;
    l_value_offset:=0;
    l_esc_offset:=0;
    l_esc_count:=0;
    l_esc_char:=null;
    l_parameter_name:=null;
    l_parameter_value:=null;
    begin
    loop
    l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
    exit when l_equals_offset = 0;
    l_start_offset := l_equals_offset + 1;
    loop
    l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
    if l_comma_offset = 0
    then
    l_comma_offset := length(p_parameters) + 1;
    exit;
    else
    l_esc_count := 0;
    l_esc_offset := l_comma_offset - 1;
    loop
    l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
    exit when l_esc_char != '\';
    l_esc_count := l_esc_count + 1;
    l_esc_offset := l_esc_offset - 1;
    end loop;
    if MOD(l_esc_count, 2) != 0
    then
    l_start_offset := l_comma_offset + 1;
    else
    exit;
    end if;
    end if;
    end loop;
    l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
    l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
    -- Override Input Parameter
    ${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
    exit when l_comma_offset >= length(p_parameters)-1;
    l_start_offset := l_comma_offset + 1;
    l_anchor_offset := l_start_offset;
    end loop;
    end;
    p_parameters:=p_custom_params;
    p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_CUSTOM;
    l_anchor_offset:= 1;
    l_start_offset:= 1;
    l_equals_offset:=0;
    l_comma_offset:=0;
    l_value_offset:=0;
    l_esc_offset:=0;
    l_esc_count:=0;
    l_esc_char:=null;
    l_parameter_name:=null;
    l_parameter_value:=null;
    begin
    loop
    l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
    exit when l_equals_offset = 0;
    l_start_offset := l_equals_offset + 1;
    loop
    l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
    if l_comma_offset = 0
    then
    l_comma_offset := length(p_parameters) + 1;
    exit;
    else
    l_esc_count := 0;
    l_esc_offset := l_comma_offset - 1;
    loop
    l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
    exit when l_esc_char != '\';
    l_esc_count := l_esc_count + 1;
    l_esc_offset := l_esc_offset - 1;
    end loop;
    if MOD(l_esc_count, 2) != 0
    then
    l_start_offset := l_comma_offset + 1;
    else
    exit;
    end if;
    end if;
    end loop;
    l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
    l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
    -- Override Input Parameter
    ${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
    exit when l_comma_offset >= length(p_parameters)-1;
    l_start_offset := l_comma_offset + 1;
    l_anchor_offset := l_start_offset;
    end loop;
    end;
    -- Execute
    dbms_output.put_line('Stage 4: Executing Task');
    l_audit_result := ${RUNREP}.wb_rt_api_exec.execute(l_audit_execution_id);
    if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
    then
    l_audit_result_disp := 'SUCCESS';
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
    then
    l_audit_result_disp := 'WARNING';
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE
    then
    l_audit_result_disp := 'FAILURE';
    else
    l_audit_result_disp := 'UNKNOWN';
    end if;
    dbms_output.put_line('| l_audit_result=' || to_char(l_audit_result) || ' (' || l_audit_result_disp || ')');
    -- Finish Execution
    dbms_output.put_line('Stage 5: Closing Task');
    ${RUNREP}.wb_rt_api_exec.close(l_audit_execution_id);
    commit;
    dbms_output.put_line('Stage 6: Processing Result');
    if l_oem_style
    then
    if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
    then
    l_return := 0;
    elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
    then
    l_return := 0;
    else
    l_return := l_audit_result;
    end if;
    else
    l_return := l_audit_result;
    end if;
    dbms_output.put_line('| exit=' || to_char(l_return));
    if (l_return = 3) then
    raise fout;
    elsif (l_return = 2 ) then
    raise opgepast;
    end if;
    exception
    when fout then
    raise_application_error(-20002, 'Error during executing task');
    when opgepast then
    raise_application_error(-20003, 'Warning during executing task');
    when no_data_found
    then
    raise_application_error(-20001, 'Task not found - Please check the Task Type, Name and Location are correct.');
    end;
    dbms_output.put_line('| exit=' || to_char(l_return));
    end ;
    EOF
    exitcode=${?}
    if [ ${exitcode} -ne 0 ]
    then
         echo "Exitcode = ${exitcode}" >> ${LOGFILE}     
         fout_melding "OWBRUN ${MAPPING} "
         exit ${exitcode}
    else
         echo "OWBRUN succesfull" >> ${LOGFILE}
    fi
    echo "---------------------------------------------------------------------" >> ${LOGFILE}
    echo "Date     :     $(date +%d%b%Y)" >> ${LOGFILE}
    echo "Time     :     $(date +%H:%M:%S)" >> ${LOGFILE}
    echo "Terminated succesfull" >> ${LOGFILE}
    echo "---------------------------------------------------------------------" >> ${LOGFILE}
    echo "Stop     : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
    times >> ${STATSFILE}
    #echo "Loader Statistics" >> ${LOGFILE}
    #awk -f ${BASEPATH}/bin/loadstat.awk ${STATSFILE} >> ${LOGFILE}
    #${BASEPATH}/bin/loadstat.ksh -s ${SCHEMA} -f ${STATSFILE}
    exit 0

  • Connect problems via SQLPLUS and other tools

    I have installed an Oracle 10g Express database on my computer. I'm able to start the database as well as listener, and also login to the database. However, while trying to connect via SQLPLUS or PL/SQL developer, I get the following error message: ORA-12154 TNS: could not resolve the connect identifier specified. I also did a tnsping, but got the following error message: TNS-03505 failed to resolve name. I suspect that these 2 messages are somehow related to the problem. I set the following msdos variables: ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server. ORACLE_SID=XE. I also specified this in my registry. Also TNS_ADMIN is set to the following TNS_ADMIN=C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN. On my computer I installed the XE client. I noticed that there are several tnsnames.ora and sqlnet.ora registered in several places.
    I also have the Developer Suite installed on my computer but cannot access it. I think this is due to the aforementioned problem.
    I would greatly appriciate advise in resolving this problem.

    You have several Oracle Home's, so you may be trying to get the tnsnames.ora file from another location. You could either declare the XE entry at all used tnsnames.ora files or you should be consistent with the sqlplus client you are invoking. After the PATH environment variable you may be invoking a sqlplus executable located elsewhere but the XE Oracle Home, so this sqlplus will try to resolve the tns alias at the Home where this was invoked from.
    I suggest you to verify your environment variables and make sure your path environment points to the XE oracle home and either reset your environment variables for your current session or invoke sqlplus with absolute path.
    ~ Madrid

  • Unable to connect to databases via SQLPlus or SQLDeveloper

    Hi,
    Current Setup: Linux Enterprise 5.8 64 bit/ Oracle 11g/ SQL Developer 3.1
    I recently created a new Linux VM from scratch and installed Oracle 11g on it. Was able to successfully create databases via DBCA, how ever am not able to connect to these databases.
    You'll find this very interesting. I recently discovered different scenarios, where it works and does not works.
    Below scenarios are executed in sequence. After Scenario C, I can successfully create connections via SQLPlus and SQLDeveloper
    Scenario A :
    STEP 1) Start Linux Box
    STEP 2) Try to extablish connection via SQLPlus and SQLDeveloper
    SQLPlus Error: ERROR: ORA-12541: TNS:no listener
    SQLDeveloper Error: Network Adaptor could not establish the resource
    Scenario B :
    STEP 1)Run: lsnrctl start
    ==========
    OUTPUT START
    ==========
    [admin@localhost ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 10-AUG-2012 23:53:53
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /home/admin/app/admin/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionSystem parameter file is /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.oraLog messages written to /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xmlListening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Listening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))STATUS of the LISTENER------------------------
    Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0 - ProductionStart Date 10-AUG-2012 23:53:56Uptime 0 days 0 hr. 0 min. 2 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.oraListener
    Log File /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xmlListening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))The listener supports no servicesThe command completed successfully[admin@localhost ~]$
    =========
    OUTPUT END
    =========
    STEP 2) Try to extablish connection via SQLPlus and SQLDeveloper
    SQLPlus Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    SQLDeveloper Error: TNS: listner does not currently know of SID given in connect descriptor
    Scenario C :
    STEP 1) Open DBCA > Configure all database one by one database > Go to till STEP 3 of DBCA configuration wizard
    STEP 2) Close DBCA
    STEP 3)Run: lsnrctl status
    ==========
    OUTPUT START
    ==========
    [admin@localhost ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-AUG-2012 12:04:11
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting 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 11-AUG-2012 11:48:51
    Uptime 0 days 0 hr. 15 min. 19 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/admin/app/admin/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /home/admin/app/admin/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "agent" has 1 instance(s).
    Instance "agent", status READY, has 1 handler(s) for this service...
    Service "agentXDB" has 1 instance(s).
    Instance "agent", status READY, has 1 handler(s) for this service...
    Service "orcl.localdomain" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.localdomain" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "productionXDB" has 1 instance(s).
    Instance "production", status READY, has 1 handler(s) for this service...
    Service "production_core" has 1 instance(s).
    Instance "production", status READY, has 1 handler(s) for this service...
    Service "publishing" has 1 instance(s).
    Instance "publishing", status READY, has 1 handler(s) for this service...
    Service "publishingXDB" has 1 instance(s).
    Instance "publishing", status READY, has 1 handler(s) for this service...
    Service "switchinga" has 1 instance(s).
    Instance "switchinga", status READY, has 1 handler(s) for this service...
    Service "switchingaXDB" has 1 instance(s).
    Instance "switchinga", status READY, has 1 handler(s) for this service...
    Service "switchingb" has 1 instance(s).
    Instance "switchingb", status READY, has 1 handler(s) for this service...
    Service "switchingbXDB" has 1 instance(s).
    Instance "switchingb", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [admin@localhost ~]$
    ==========
    OUTPUT END
    ==========
    What can I do to connect to databases and not start dbca and configure each database on system start?
    Any help would be highly appreciated.
    Cheers,
    Sandeep
    Edited by: Sandeep.R on Aug 11, 2012 12:06 PM

    You need a service to auto start/stop instances. Pls See
    Re: Oracle instance is going to idle when i restart/start the machineRgds,
    Ahmer

  • Oracle in not responsing to connect requests via sqlplus

    Hi,
    I am trying to connect to oracle 10.2.0.3 on linux via sqlplus.
    All the oracle process are up.
    tnsping and ping are response OK.
    I check the uptime, and it show:
    01:58:21 up 3 days, 23:47, 1 user, load average: 0.09, 0.03, 0.01
    THE PROBLEM IS :
    Oracle is not responsing at all to any connect requests:
    sqlplus xxx/yyy@prd
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Feb 1 00:23:56 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Quit
    I set the following parameters in the sqlnet.ora:
    trace_level_client = 16
    trace_file_client = client
    trace_directory_client = /software/oracle/admin/prd/net_log
    trace_unique_client = on
    log_directory_client = /software/oracle/admin/prd/net_log/
    trace_level_server = 16
    trace_file_server = svr
    trace_directory_server = /software/oracle/admin/prd/net_log/
    trace_unique_server = on
    log_file_server = svr
    log_directory_server = /software/oracle/admin/prd/net_log/
    I couldnt find any error in the trace files that had been generated.
    Does one have any suggestion ?
    Thanks.

    Can you post the last 100 or so lines from a client trace that is hanging (before you kill the hanging login)?
    The advice to check the listener log on the server is sound, as would be a look at the server's alert<sid>.log and an strace output of the attempt:
    strace sqlplus xxx/yyy@prd
    The advice to delete your spfile and increase PROCESSES is clearly unwarranted, since you have provided no indication that you are exceeding that resource limit. Furthermore you are not receiving "ORA-00020: maximum number of processes (%s) exceeded", which is what we would expect in such an eventuality.
    Regards,
    Jeremiah Wilton
    ORA-600 Consulting
    http://www.ora-600.net

  • Can connect to local DB via SQLPlus but not via SQLDeveloper, all info incl

    Have a database running on a new local Windows 7 Professional Machine with data, users, etc from an db import. Able to access database via sqlplus, run queries, etc. Cannot run from Oracle SQL Developer. Trying to use Connection Type Basic, Hostname localhost, port *1521*.
    Using SID = xe I get:
    Status: Failure -Test failed: Listener refused the connection with the following error: ORA-12518, TNS:listener could not hand off client connection The Connection descriptor used by the client was localhost:1521:xe
    When I add a service in my listener.ora file for sid_name=xe and program_name=xe (which I include below), I get
    ORA-12518, TNS:listener could not hand off client connection. The connection descriptor used by the client was localhost:1521:xe
    Using Service name = xe I get:
    Status: Failure -Test failed: Io exception: the Network Adapter could not establish the connection.
    Here's every single piece of information I think you may possibly need to help me with the issue. [I've been trying to find the solution on these forums so I hope I haven't messed my settings up even more than they had been before.]
    TNSNAMES.ORA (XE is the name of my local database):
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (service_name = XE)
    (SERVER = DEDICATED)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    LISTENER.ORA
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = XE)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = XE)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    C:\Windows\system32>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 25 19:36:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select sysdate from dual;
    SYSDATE
    25-APR-10
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
    ction
    C:\Windows\system32>tnsping xe
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-APR-2
    010 19:43:02
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1521)) (CONNECT_DATA = (service_name = XE) (SERVER = DEDICATED)))
    OK (20 msec)
    C:\Windows\system32>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-APR-2010 19:46
    :20
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "XE" has 1 instance(s).
    Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:10
    LOCAL SERVER
    The command completed successfully
    Edited by: user1966631 on Apr 25, 2010 4:59 PM

    Got it. No, no virtualization. Just Win7 64-bit computer running XE.
    C:\Users\Gil>sqlplus ccxreg/ccxreg@XE
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 25 21:23:20 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    listener.log
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-APR-2010 19:54:10
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=760
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    25-APR-2010 19:55:46 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=51031)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 19:56:11 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=51040)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 19:56:18 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=51043)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 19:56:31 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=51048)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 19:56:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))(SERVICE_NAME=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=51050)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 19:56:37 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=51052)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 20:42:45 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=52547)) * establish * xe * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    25-APR-2010 20:43:08 * (CONNECT_DATA=(SID=@xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=52558)) * establish * @xe * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    25-APR-2010 20:43:13 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))(SERVICE_NAME=@xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=52562)) * establish * @xe * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    25-APR-2010 21:03:00 * ping * 0
    25-APR-2010 21:03:17 * ping * 0
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-APR-2010 21:06:07
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=6836
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    25-APR-2010 21:06:11 * service_register * CLRExtProc * 0
    25-APR-2010 21:06:11 * service_register * CLRExtProc * 0
    25-APR-2010 21:06:11 * service_update * CLRExtProc * 0
    25-APR-2010 21:07:04 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=53945)) * establish * xe * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    25-APR-2010 21:07:55 * service_update * CLRExtProc * 0
    25-APR-2010 21:09:35 * service_update * CLRExtProc * 0
    25-APR-2010 21:11:15 * service_update * CLRExtProc * 0
    25-APR-2010 21:12:55 * service_update * CLRExtProc * 0
    25-APR-2010 21:14:35 * service_update * CLRExtProc * 0
    25-APR-2010 21:16:16 * service_update * CLRExtProc * 0
    25-APR-2010 21:17:56 * service_update * CLRExtProc * 0
    25-APR-2010 21:19:38 * service_update * CLRExtProc * 0
    25-APR-2010 21:21:21 * service_update * CLRExtProc * 0
    25-APR-2010 21:23:02 * service_update * CLRExtProc * 0
    25-APR-2010 21:23:20 * (CONNECT_DATA=(service_name=XE)(SID=XE)(SERVER=DEDICATED)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\bin\sqlplus.exe)(HOST=WIN7X64)(USER=Gil))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=54388)) * establish * XE * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    25-APR-2010 21:24:43 * service_update * CLRExtProc * 0

  • DBMS_SCHEDULER.run_chain() only works when connected to DB as sys

    Database Version: 10.2.0.4.0
    Hello,
    I have a problem with DBMS_SCHEDULER.run_chain where the Chain to be run references an external Program.
    The Chain runs correctly when run via SQLPLUS when you are connected to the database as SYS but fails to run when you are connected to the Database as the User who owns the Chain.
    The complete steps to recreate the problem are below. Any thoughts or suggestions gratefully received.
    Thanks,
    Andy
    STEP 1: Login with sys as sysdba and create a new user
    CREATE USER chaintest IDENTIFIED BY password PROFILE DEFAULT ACCOUNT UNLOCK;
    GRANT MGMT_USER TO chaintest;
    GRANT CONNECT TO chaintest;
    GRANT IMP_FULL_DATABASE TO chaintest;
    GRANT SCHEDULER_ADMIN TO chaintest;
    GRANT MANAGE SCHEDULER TO chaintest;
    GRANT EXECUTE ANY CLASS TO chaintest;
    GRANT CREATE ANY DIRECTORY TO chaintest;
    GRANT CREATE ANY JOB TO chaintest;
    GRANT CREATE TABLE TO chaintest;
    GRANT EXECUTE ANY PROGRAM TO chaintest;
    GRANT CREATE JOB TO chaintest;
    GRANT CREATE EXTERNAL JOB TO chaintest;
    STEP 2: Create a very simple batch file
    Create a folder called c:\chaintest and create a text file in there whose entire contents
    is "notepad.exe" followed by a carriage return. The idea is that if this batch file is
    called a notepad Window will be opened so we can clearly see if the batch file has run.
    STEP 3: Create a DBMS_SCHEDULER Program
    BEGIN
    DBMS_SCHEDULER.CREATE_PROGRAM (
    program_name => 'CHAINTEST.CHAINTEST_PROGRAM',
    program_type => 'EXECUTABLE',
    program_action => 'C:\WINDOWS\SYSTEM32\CMD.EXE /q /c c:\chaintest\chaintest.bat',
    number_of_arguments => 3,
    enabled => false);
    DBMS_SCHEDULER.define_program_argument(
    program_name =>'CHAINTEST.CHAINTEST_PROGRAM',
    argument_position => 1,
    argument_type => 'VARCHAR2',
    default_value => '/q');
    DBMS_SCHEDULER.define_program_argument(
    program_name =>'CHAINTEST.CHAINTEST_PROGRAM',
    argument_position => 2,
    argument_type => 'VARCHAR2',
    default_value => '/c');
    DBMS_SCHEDULER.define_program_argument(
    program_name =>'CHAINTEST.CHAINTEST_PROGRAM',
    argument_position => 3,
    argument_type => 'VARCHAR2',
    default_value => 'c:\chaintest\chaintest.bat');
    DBMS_SCHEDULER.enable('CHAINTEST.CHAINTEST_PROGRAM');
    END;
    STEP 4: Create a chain
    BEGIN
    DBMS_SCHEDULER.CREATE_CHAIN (chain_name => 'CHAINTEST.CHAINTEST_CHAIN');
    END;
    STEP 5: Create the only Chain Step
    BEGIN
    DBMS_SCHEDULER.DEFINE_CHAIN_STEP(chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , step_name=>'STEPA'
    , program_name=>'CHAINTEST.CHAINTEST_PROGRAM');
    END;
    STEP 6: Create Chain Rules
    BEGIN
    DBMS_SCHEDULER.DEFINE_CHAIN_RULE(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , condition=>'TRUE'
    , action=>'START STEPA');
    DBMS_SCHEDULER.DEFINE_CHAIN_RULE(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , condition=>'STEPA COMPLETED'
    , action=>'END');
    END;
    STEP 7: Enable the Chain
    BEGIN
    DBMS_SCHEDULER.enable('CHAINTEST.CHAINTEST_CHAIN');
    END;
    STEP 8: Run the Chain whilst still connected as sys and observe that a Notepad window opens
    confirming that the Batch file ran successfully.
    BEGIN
    DBMS_SCHEDULER.run_chain(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , start_steps=>NULL);
    END;
    STEP 9: Connect to the database as the CHAINTEST user and run the same command as in STEP 8 above.
    Observe that even though you receive the message "PL/SQL procedure successfully completed." and do
    not see any error messages that no Notepad Window is opened indicating that the Batch file was NOT run.
    BEGIN
    DBMS_SCHEDULER.run_chain(
    chain_name=>'CHAINTEST.CHAINTEST_CHAIN'
    , start_steps=>NULL);
    END;

    >
    The Chain runs correctly when run via SQLPLUS when you are connected to the database as SYS but fails to run when you are connected to the Database as the User who owns the Chain.
    >
    Not true based on what you posted. The chain DOES RUN connected as SYS and when connected as the User who owns the chain.
    You posted steps that show that SYS is the user that owns the program and thus the chain.
    >
    STEP 1: Login with sys as sysdba and create a new user
    STEP 8: Run the Chain whilst still connected as sys and observe that a Notepad window opens
    confirming that the Batch file ran successfully.
    >
    I don't see where you made any EXECUTE grant to user 'chaintest' that would allow that user to execute the program.
    See the Usage Notes in the CREATE PROGRAM section of DBMS_SCHEDULER in the Database PL/SQL Packages and Types Reference
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_sched.htm#CIHEHDHA
    >
    For other users to use your programs, they must have EXECUTE privileges, therefore once a program has been created, you have to grant EXECUTE privileges on it.
    >
    Grant the EXECUTE privilege to user 'chaintest' and try it.

  • Startup database via sqlplus - ORA-12514

    Windows XP Prof., ORACLE 10g R2
    I did the following on the database server:
    sqlplus sys as sysdbaSQL>shutdown
    SQL>exit
    sqlplus /nologSQL> connect sys as sysdba
    ERROR:
    ORA-12514: TNS: Listener kann in Connect-Deskriptor angegebenen Service aktuell nicht aufl÷sen
    What have I to do that I can connect to database on the server via sqlplus without using the listener? I understand that the listener can't find the service because the database is down. But there must be a possibility to connect to an idle instance.
    Thanks in advance!
    Wolfgang

    Hi Wolfgang,
    read this through: http://www.dbmotive.com/oracle_error_codes.php?errcode=12514
    Franky

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
    Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
    Thanks...

    sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
    you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details.

  • Connect via SQL*Plus taking more time in Oracle 11 than in 10

    Oracle Version
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Productioncurrently migrating from
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - ProductionOS is AIX 5.3 for Oracle 10 and AIX 6.1 for Oracle 11.
    We are currently in the process of migrating some applications from Oracle 10 to 11. Our admins have setup a new development system for us with an Oracle 11 instance. Regarding performance the new system behaves more or less the same than our old, e.g. when executing SQLs we notice hardly any performance differences and those we find are slightly in favour of the new system.
    But now we discovered that the time it takes to establish a database connection via SQL*Plus is longer on the Oracle 11 system. Running the following code
    sqlplus -s user/pw@database <<END
    quit
    ENDa thousand times takes ~60s under Oracle 10 but ~140s under Oracle 11. This may not seem much but we are running a test framework consisting of a bunch of shell scripts where several thousand connections are openend via SQL*Plus to execute some SQLs, so that even this small time difference results in rather huge difference in total runtime. The SQLs themself require roughly the same time in both databases, as already mentioned above they are in fact slightly faster in Oracle 11.
    To analyze the time difference I ran a trace for the connect with the following parameters in sqlnet.ora
    TRACE_LEVEL_CLIENT=4
    TRACE_UNIQUE_CLIENT=ONand found out that there is a time difference of about 70ms during the connect handshake:
    Oracle 10
    [22-MAR-2013 12:13:09:595] nscon: doing connect handshake...
    [22-MAR-2013 12:13:09:595] nscon: sending NSPTCN packet
    [22-MAR-2013 12:13:09:621] nscon: got NSPTRS packet
    [22-MAR-2013 12:13:09:621] nscon: sending NSPTCN packetOracle 11
    (1) [22-MAR-2013 12:15:26:812] nscon: doing connect handshake...
    (1) [22-MAR-2013 12:15:26:812] nscon: sending NSPTCN packet
    (1) [22-MAR-2013 12:15:26:906] nscon: got NSPTRS packet
    (1) [22-MAR-2013 12:15:26:906] nscon: sending NSPTCN packetUnder Oracle 10 there are 26ms between sending the NSPTCN packet and getting the NSPTRS packet, whereas under Oracle 11 this takes 94ms. I ran the trace again, this time with
    TRACE_LEVEL_CLIENT=16and got the following results for the critical interval:
    Oracle 10:
    [22-MAR-2013 13:17:37:638] nscon: sending NSPTCN packet
    [22-MAR-2013 13:17:37:638] nspsend: entry
    [22-MAR-2013 13:17:37:638] nspsend: plen=218, type=1
    [22-MAR-2013 13:17:37:638] nttwr: entry
    [22-MAR-2013 13:17:37:638] nttwr: socket 9 had bytes written=218
    [22-MAR-2013 13:17:37:638] nttwr: exit
    [22-MAR-2013 13:17:37:638] nspsend: packet dump
    <<packet dump removed>>
    [22-MAR-2013 13:17:37:638] nspsend: 218 bytes to transport
    [22-MAR-2013 13:17:37:638] nspsend: normal exit
    [22-MAR-2013 13:17:37:638] nscon: exit (0)
    [22-MAR-2013 13:17:37:638] nsdo: nsctxrnk=0
    [22-MAR-2013 13:17:37:638] nsdo: normal exit
    [22-MAR-2013 13:17:37:638] nsdo: entry
    [22-MAR-2013 13:17:37:638] nsdo: cid=0, opcode=68, *bl=512, *what=9, uflgs=0x0, cflgs=0x3
    [22-MAR-2013 13:17:37:638] nsdo: rank=64, nsctxrnk=0
    [22-MAR-2013 13:17:37:638] nsdo: nsctx: state=2, flg=0x4005, mvd=0
    [22-MAR-2013 13:17:37:638] nsdo: gtn=10, gtc=10, ptn=10, ptc=2011
    [22-MAR-2013 13:17:37:638] nscon: entry
    [22-MAR-2013 13:17:37:638] nscon: recving a packet
    [22-MAR-2013 13:17:37:638] nsprecv: entry
    [22-MAR-2013 13:17:37:638] nsprecv: reading from transport...
    [22-MAR-2013 13:17:37:638] nttrd: entry
    [22-MAR-2013 13:17:37:665] nttrd: socket 9 had bytes read=8
    [22-MAR-2013 13:17:37:665] nttrd: exit
    [22-MAR-2013 13:17:37:665] nsprecv: 8 bytes from transport
    [22-MAR-2013 13:17:37:665] nsprecv: tlen=8, plen=8, type=11
    [22-MAR-2013 13:17:37:665] nsprecv: packet dump
    [22-MAR-2013 13:17:37:665] nsprecv: 00 08 00 00 0B 00 00 00  |........|
    [22-MAR-2013 13:17:37:665] nsprecv: normal exit
    [22-MAR-2013 13:17:37:665] nscon: got NSPTRS packetOracle 11
    (1) [22-MAR-2013 13:33:40:504] nscon: sending NSPTCN packet
    (1) [22-MAR-2013 13:33:40:504] nspsend: entry
    (1) [22-MAR-2013 13:33:40:504] nspsend: plen=205, type=1
    (1) [22-MAR-2013 13:33:40:504] nttwr: entry
    (1) [22-MAR-2013 13:33:40:504] nttwr: socket 8 had bytes written=205
    (1) [22-MAR-2013 13:33:40:504] nttwr: exit
    (1) [22-MAR-2013 13:33:40:504] nspsend: packet dump
    <<packet dump removed>>
    (1) [22-MAR-2013 13:33:40:505] nspsend: 205 bytes to transport
    (1) [22-MAR-2013 13:33:40:505] nspsend: normal exit
    (1) [22-MAR-2013 13:33:40:505] nscon: exit (0)
    (1) [22-MAR-2013 13:33:40:505] snsbitts_ts: entry
    (1) [22-MAR-2013 13:33:40:505] snsbitts_ts: acquired the bit
    (1) [22-MAR-2013 13:33:40:505] snsbitts_ts: normal exit
    (1) [22-MAR-2013 13:33:40:505] nsdo: nsctxrnk=0
    (1) [22-MAR-2013 13:33:40:505] snsbitcl_ts: entry
    (1) [22-MAR-2013 13:33:40:505] snsbitcl_ts: normal exit
    (1) [22-MAR-2013 13:33:40:505] nsdo: normal exit
    (1) [22-MAR-2013 13:33:40:505] nsdo: entry
    (1) [22-MAR-2013 13:33:40:505] nsdo: cid=0, opcode=68, *bl=2048, *what=9, uflgs=0x0, cflgs=0x3
    (1) [22-MAR-2013 13:33:40:505] snsbitts_ts: entry
    (1) [22-MAR-2013 13:33:40:505] snsbitts_ts: acquired the bit
    (1) [22-MAR-2013 13:33:40:505] snsbitts_ts: normal exit
    (1) [22-MAR-2013 13:33:40:505] nsdo: rank=64, nsctxrnk=0
    (1) [22-MAR-2013 13:33:40:505] snsbitcl_ts: entry
    (1) [22-MAR-2013 13:33:40:505] snsbitcl_ts: normal exit
    (1) [22-MAR-2013 13:33:40:505] nsdo: nsctx: state=2, flg=0x4005, mvd=0
    (1) [22-MAR-2013 13:33:40:505] nsdo: gtn=10, gtc=10, ptn=10, ptc=8155
    (1) [22-MAR-2013 13:33:40:505] nscon: entry
    (1) [22-MAR-2013 13:33:40:505] nscon: recving a packet
    (1) [22-MAR-2013 13:33:40:505] nsprecv: entry
    (1) [22-MAR-2013 13:33:40:505] nsprecv: reading from transport...
    (1) [22-MAR-2013 13:33:40:505] nttrd: entry
    (1) [22-MAR-2013 13:33:40:618] nttrd: socket 8 had bytes read=8
    (1) [22-MAR-2013 13:33:40:618] nttrd: exit
    (1) [22-MAR-2013 13:33:40:618] nsprecv: 8 bytes from transport
    (1) [22-MAR-2013 13:33:40:618] nsprecv: tlen=8, plen=8, type=11
    (1) [22-MAR-2013 13:33:40:618] nsprecv: packet dump
    (1) [22-MAR-2013 13:33:40:618] nsprecv: 00 08 00 00 0B 00 00 00  |........|
    (1) [22-MAR-2013 13:33:40:618] nsprecv: normal exit
    (1) [22-MAR-2013 13:33:40:618] nscon: got NSPTRS packetAny ideas what could be the reason for this time difference? Something in our network configuration or something else?

    With local connections - I do not think a TCP packet send from an IP to the same IP, leaves the interface as an actual wire protocol/signal. If I'm correct, then running local connection tests will be mostly useless in checking the actual network infrastructure.
    Tests 3 and 4 should be showing the same connection times as the same physical network infrastructure is used - only the direction is reversed in the tests.
    I would assume that port settings on the switches and interface settings on the routers treat packets equally in both directions between 2 servers. But this could in part explain the problem if this is not the case. In a case of a router for example, the 1st test's ingress interface is the egress interface of the 2nd test (and vice versa). Configurations can differ substantially between interfaces on the same router. Likewise if there is a firewall - as different rule sets are applied in each test and these rule sets could differ.
    So I would not be too quick to state that this is definitely not a network problem. But I agree that based on the small percentage difference (assuming comparable tests), it does not look like a network issue.
    The next step is to determine what the delay is between the listener accepting the client connection, and the connection being serviced by a dedicated server process.
    This will require listener tracing - tracing the time from when the listener accepted the connection (and parsed the TNS connection string), to handing off the connection to the dedicated server process.
    As a comparison test, you can also test shared server connections. Dispatcher processes (of the db instance) register themselves with the listener. The shared server client hand off is thus done to an existing server process - no need for the Listener to make a kernel call to load and initialise an executable image.
    Shared connections are typically faster than dedicated connections in this respect.
    If there is a major time difference, then it means some kind of issue with the listener dealing with dedicated servers as oppose to dispatcher hand off's. As both connections would have had very similar network transit time - which means the connection time difference is related directly to dealing with a dedicated server connection request and hand off.
    You can also substitute the oracle executable with a wrapper - and troubleshoot the actual dedicated server startup. I've only done this with Oracle XE 10.2 though and with local IPC connections. Unsure how robust this will be for testing purposes via TCP using 11g.

  • X240 (Win 8.1) w/ Ultra Dock and two external monitors connected via DisplayPort problem

    I'm having trouble making this combination work. This Ultra Dock does have two DP connectors, computer sees both external monitors (HP ZR24w) but I cannot get any picture on both at the same time using DP. Sometimes one display does work, but that is not always working.
    When I connect same monitors via VGA/DSUB and DP (with Lenovo DPtoDVI converter) I can get this to work - both same time - , but I'd prefer them both digital and both native DP as both monitors do have that port.
    Ultra Dock does already have the latest firmware and this problem seems to not relate to the flickering problem with T440 etc. X240 is also running latest UEFI/BIOS and I've also tried latest Intel Beta display driver, no effect.

    shelmers wrote:
    W520 with Win 7 Pro
    Minidock Plus Series 3
    Two Asus monitors attached via DVI
    Let me start by saying that the internal and both external monitors work simultaneously. However, getting to that state is the problem.
    I can boot successfully with the laptop in the dock with 1) just the internal monitor, or 2) the internal and one external monitor connected.
    However, if I try to boot with both monitors connected via DVI, the following happens:
    Windows logon screen appears -- but there is no cursor on the screen
    I enter the password and the login continues for 30-60 seconds, then
    Blue screen SYSTEM_SERVICE_EXCEPTION for nvlddmkm.sys with STOP x0000003B
    Lenovo has replaced the dock with no change in behavior.
    Drivers and BIOS are current.
    Most recent change was to set BIOS so Win 7 automatically detects Nvidia Optimus.
    At this point, my best workaround is to disconnect one external monitor whenever I need to reboot, and then connect it again after everything is runing. Not terrible... but it really shouldn't be necessary. Any suggestions?
    If you want to drive the monitors in the manner stated, the BIOS Display property must be set to Discrete and the auto detection below it must be disabled.

  • Error trying to connect via jdbc

    I'm trying to connect via jdbc driver from a java application to a remote db. The code is quite simple
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@dbhost:orcl", "user", "password");
    in my CLASSPATH I have the ojdbc14.jar file
    When I run this program I get the following error:
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
    at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:366
    8)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:551)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at Test.main(Test.java:12)
    Please be aware of the following facts:
    1) sqlplus from the same machine has no problem connecting to the db
    2) there is no firewall or router between the client and the server
    3) As host name I've tried the fqdn (resolved by the DNS), a name I've set up in /etc/hosts, the mere IP address
    4) Checking with tcpdump, I've verified that NO network packet actually leaves the client, so the problem completely lies there.
    Has anyone some good idea why this happens?

    Make sure you are providing correct hostname and listener port number

Maybe you are looking for