ORA-07202 sltln: invalid parameter to sltln.using dbca to create 11g

OS:Red Hat Linux 5
DB :11.2.0.2
i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create

user13549752 wrote:
OS:Red Hat Linux 5
DB :11.2.0.2
i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create
07202, 00000, "sltln: invalid parameter to sltln."
// *Cause:  The sltln name translation routine was called with invalid
//          arguments. The input, or output stings were either NULL or 0 length.
// *Action: Probable internal oracle error. Contact customer support.I suspect you failed to Read The Fine Manual, Installation Guide

Similar Messages

  • ORA-07202 sltln: invalid parameter to sltln.using

    OS:Red Hat Linux 5
    DB :11.2.0.2
    i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create

    Please check this thread (response from PavanG):
    ORA-07202 while creating DB
    Even though your DB version is 11g but this thread may help solve your problem.

  • Get ora-00119 erro when using DBCA to create database?

    Hi, friends:
    when using DBCA to create database, after finishing all steps and let DBCA to create database automatically, bump into an error:
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132:syntax error or unresolved network name 'LISTENER_mysid'
    ORA-01078: failure in processing system parameter
    this is 10.2.0.3 version oracle, the server is sun10, no other instace created yet.
    just Oracle software installed.
    Can any friends help?
    thanks a lot in advance!

    See on metalink:
    ORA-119, ORA-132 ORA-1078 Received From DBCA After Applying 10.2.0.3 Patchset
    Doc ID: Note:433817.1
    There's an entry LOCAL_LISTENER created in pfile/spfile, that's a bug.
    Werner

  • Can't install Data Guard using DBCA in Oracle 11g Release 2

    I have installed Oracle database 11g Release 2 successfully. I have installed Label Security using DBCA, now when I am installing Database Vault using DBCA, it gives message "ORA-01017: invalid username/password; logon denied" and exists back to DBCA.
    What step I am missing? please suggest.
    Regards and thx,

    Hi,
    I had the same issue too. I installed it on my desktop (server class option). Everything else including EM is working fine. However I got around the issue to an extent by manually running the catalog scripts for database vault. It should be located under $ORACLE_HOME/rdbms/admin. You have to run the script catmac.sql. There is a catch though. You need to go through the contents of the script and execute the other scripts manually by supplying username and passwords (yes, it sucks!!) but I don't find any help on metalink for this issue.
    Currently I am trying to create the realms but I am denied permission due to lack of "OPERATOR TARGET" privileges.
    If someone can lead me to the correct place where I can look for what is missing, it would be great.
    Thank you
    Kumar Ramalingam

  • Using DBCA to create ASM instance; no member disks found

    OK, we've been struggling with this for two days and we can't seem to find the magic mojo to get it working.
    I've got two Redhat 64-bit machines running Oracle 10.2.0.3 on them. Clusterware is installed fine and communicating properly. We've installed ASMLib and created our ASM disks fine and they list correctly using the oracleasm utility.
    Our problem is that when I go to create the ASM instance (using DBCA) the member disks do not show up. I have tried changing the "Disk Discovery Path", I've created listeners, started DBCA from different Oracle homes, re-installed, etc... nothing seems to work.
    I've even seen a few threads where people have experienced the same problem but have not seen solutions. Anyone have ideas how I can resolve this issue?

    Actually, it needs to be root:dba, sorry for the confusion:
    $>ls -l
    total 0
    crw-rw---- 1 root dba 162, 1 May 15 22:49 raw1
    crw-rw---- 1 root dba 162, 10 May 15 22:49 raw10
    crw-rw---- 1 root dba 162, 11 May 15 22:49 raw11
    crw-rw---- 1 root dba 162, 12 May 15 22:49 raw12
    crw-rw---- 1 root dba 162, 13 May 15 22:49 raw13
    crw-rw---- 1 root dba 162, 14 May 15 22:49 raw14
    crw-rw---- 1 root dba 162, 15 May 15 22:49 raw15
    crw-rw---- 1 root dba 162, 16 May 15 22:49 raw16
    crw-rw---- 1 root dba 162, 17 May 15 22:49 raw17
    crw-rw---- 1 root dba 162, 18 May 15 22:49 raw18
    crw-rw---- 1 root dba 162, 19 May 15 22:49 raw19
    crw-rw---- 1 root dba 162, 2 May 15 22:49 raw2
    crw-rw---- 1 root dba 162, 20 May 15 22:49 raw20
    crw-rw---- 1 root dba 162, 21 May 15 22:49 raw21
    crw-rw---- 1 root dba 162, 22 May 15 22:49 raw22
    crw-rw---- 1 root dba 162, 23 May 15 22:49 raw23
    crw-rw---- 1 root dba 162, 24 May 15 22:49 raw24
    crw-rw---- 1 root dba 162, 25 May 15 22:49 raw25
    crw-rw---- 1 root dba 162, 26 May 15 22:49 raw26
    crw-rw---- 1 root dba 162, 27 May 15 22:49 raw27
    crw-rw---- 1 root dba 162, 28 May 15 22:49 raw28
    crw-rw---- 1 root dba 162, 29 May 15 22:49 raw29
    crw-rw---- 1 root dba 162, 3 May 15 22:49 raw3
    crw-rw---- 1 root dba 162, 30 May 15 22:49 raw30
    crw-rw---- 1 root dba 162, 31 May 15 22:49 raw31
    crw-rw---- 1 root dba 162, 32 May 15 22:49 raw32
    crw-rw---- 1 root dba 162, 33 May 15 22:49 raw33
    crw-rw---- 1 root dba 162, 4 May 15 22:49 raw4
    crw-rw---- 1 root dba 162, 5 May 15 22:49 raw5
    crw-rw---- 1 root dba 162, 6 May 15 22:49 raw6
    crw-rw---- 1 root dba 162, 7 May 15 22:49 raw7
    crw-rw---- 1 root dba 162, 8 May 15 22:49 raw8
    crw-rw---- 1 root dba 162, 9 May 15 22:49 raw9
    ADPRD2@oracle15 oracle Last rc=0 /dev/raw
    $>
    Also, I see that you're using block devices while I am using raw devices. I know that
    Oracle11 can utilize block devices, especially on RHEL 5, but I am not sure that
    Oracle10g can do that.

  • Using dbca to create a db and all the users are locked and expired

    I create a template using dbca on 10gR2 with schema and data and when I use that to build a clone on another machine the users passwords are all locked and expired. I am doing this in silent mode from the command line and I am looking for a flag that produces the unlock users passwords feature which seems to be there if you manually run dbca from the GUI.

    This is a unix script I use to unlock accouts. I should notice this script is used for educational pourposes, in a production database it is not a good practice to leave demo accounts unlocked and overall with login=password.
    sqlplus -S /nolog <<ENDSQL
         connect / as sysdba
         SET LINESIZE 132
         SET PAGESIZE 0
         SET TERMOUT OFF
         SET NEWPAGE 0
         SET SPACE 0
         SET ECHO OFF
         SET FEEDBACK OFF
         SET HEADING OFF
         SPOOL x.sql
         SELECT 'ALTER USER '||username||' IDENTIFIED BY '||username||' ACCOUNT UNLOCK;'
         FROM   dba_users
         WHERE  account_status LIKE '%LOCK%';
         SPOOL OFF
         @x.sql
         !rm x.sql
         exit
    <<ENDSQL~ Madrid.

  • ORA-07202 while creating DB

    Hi,
    Recently I faced the following errors (ORA-01501: CREATE DATABASE failed ORA-07202: sltln: invalid parameter to sltln) while creating DB. I installed software first (10.2.0.1) on Linux CentOS x86_64 x86_64 x86_64, then patched it with 10.2.0.4 and now I'm trying to create database. After reaching 3% it shows me these errors. Logs don't contain any associated messages or errors.
    I'm loosing my marbles guessing what's wrong and how to cope with it.
    Any help is very much appreciated

    This is a known bug 5046765.
    Please use the below workaround
    You use the DBCA "Custom Database" option and then go through all the screens. Along the way, you choose to use Oracle Managed Files with Multiplexing. At the end of the process you have the option to do one or up to three things, create the database, save the template, and create scripts.
    If you choose to save the template and NOT create the database, then try to use that template in another DBCA session to create the database it fails with:
    ORA-01501: CREATE DATABASE failed:
    ORA-07207: sltln: invalid parameter to sltln
    on Unix and it fails with:
    ORA-01501: CREATE DATABASE failed:
    ORA-09314: sltln: error translating logical name
    on Windows.
    Upon analyzing the template and the scripts, you look in the new init.ora file and you discover the line that makes the process fail:
    control_files=""
    In the scripts you saved, this line does not appear. When you create the database at the same time you save the template, this line does not appear. However, when you run the saved template in a new DBCA session for the purpose of creating the database, this line is added to the init.ora file and the process fails with the errors above.

  • Problem in create database use dbca in RAC

    i setup a two-nodes RAC, and use dbca to create db
    here is the output of dbca
    [oracle@rac1 ~]$ dbca -silent -responseFile /home/oracle/dbca.rsp
    Copying database files
    1% complete
    3% complete
    9% complete
    15% complete
    21% complete
    27% complete
    30% complete
    Creating and starting Oracle instance
    32% complete
    36% complete
    40% complete
    44% complete
    45% complete
    48% complete
    50% complete
    Creating cluster database views
    52% complete
    70% complete
    Completing Database Creation
    73% complete
    76% complete
    79% complete
    80% complete
    81% complete
    90% complete
    99% complete
    100% complete
    Look at the log file "/opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb/mydb.log" for further details.
    and here is the log output:
    Failed to retrieve network listener resources required for the Real Application Clusters high
    availability extensions configurations on the following nodes: [rac1, rac2].
    Do you want listeners on port 1521 with prefix LISTENER to be created on nodes [rac1, rac2]
    automatically? If you would like to configure the listener with different properties, run NetCA
    before continuing.
    PRKS-1009 : Failed to start ASM instance "+ASM1" on node "rac1", [CRS-0215: Could not start
    resource 'ora.rac1.ASM1.asm'.]
    PRKS-1009 : Failed to start ASM instance "+ASM2" on node "rac2", [CRS-0215: Could not start
    resource 'ora.rac2.ASM2.asm'.]
    Could not mount the diskgroup on node: rac2. The ASM instance on node rac2 is not started.
    Could not mount the diskgroup on node: rac2. The ASM instance on node rac2 is not started.
    Copying database files
    DBCA_PROGRESS : 1%
    DBCA_PROGRESS : 3%
    DBCA_PROGRESS : 9%
    DBCA_PROGRESS : 15%
    DBCA_PROGRESS : 21%
    DBCA_PROGRESS : 27%
    DBCA_PROGRESS : 30%
    Creating and starting Oracle instance
    DBCA_PROGRESS : 32%
    DBCA_PROGRESS : 36%
    DBCA_PROGRESS : 40%
    DBCA_PROGRESS : 44%
    DBCA_PROGRESS : 45%
    DBCA_PROGRESS : 48%
    DBCA_PROGRESS : 50%
    Creating cluster database views
    DBCA_PROGRESS : 52%
    DBCA_PROGRESS : 70%
    Completing Database Creation
    Failed to start listeners on nodes "[rac1, rac2]" of cluster database "mydb", "CRS-1028: Dependency
    analysis failed because of:
    CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.".
    DBCA_PROGRESS : 73%
    DBCA_PROGRESS : 76%
    DBCA_PROGRESS : 79%
    ORA-01078: failure in processing system parameters
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+ORADG/mydb/spfilemydb.ora'
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15056: additional error message
    ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15173: entry 'spfilemydb.ora' does not exist in directory 'mydb'
    ORA-06512: at line 4
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 80%
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 81%
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 90%
    Enterprise manager configuration failed due to the following error -
    Invalid username/password.
    Refer to the log file at /opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb/emConfig.log for more
    details.
    You can retry configuring this database with Enterprise Manager later by manually running
    /opt/ora/product/10.2.0/db_1/bin/emca script.
    DBCA_PROGRESS : 99%
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    PRKP-1001 : Error starting instance mydb1 on node rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.mydb.mydb1.inst' has placement error.
    PRKP-1001 : Error starting instance mydb2 on node rac2
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.mydb.mydb2.inst' has placement error.
    DBCA_PROGRESS : 100%
    Database creation complete. Check the logfiles at
    /opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb for details.
    Database Information:
    Global Database Name:mydb
    System Identifier(SID) Prefix:mydb
    it should be run netca before running dbca?

    this time i run netca first,and then run dbca to configure the ASM,after that i run dbca to create database
    listener and asm instance is online,but when i create DB ,still have error
    Copying database files
    DBCA_PROGRESS : 1%
    DBCA_PROGRESS : 3%
    DBCA_PROGRESS : 9%
    DBCA_PROGRESS : 15%
    DBCA_PROGRESS : 21%
    DBCA_PROGRESS : 27%
    DBCA_PROGRESS : 30%
    Creating and starting Oracle instance
    DBCA_PROGRESS : 32%
    DBCA_PROGRESS : 36%
    DBCA_PROGRESS : 40%
    DBCA_PROGRESS : 44%
    DBCA_PROGRESS : 45%
    DBCA_PROGRESS : 48%
    DBCA_PROGRESS : 50%
    Creating cluster database views
    DBCA_PROGRESS : 52%
    DBCA_PROGRESS : 70%
    Completing Database Creation
    DBCA_PROGRESS : 73%
    DBCA_PROGRESS : 76%
    DBCA_PROGRESS : 79%
    ORA-01078: failure in processing system parameters
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+ORADG/mydb/spfilemydb.ora'
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15056: additional error message
    ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-17503: ksfdopn:2 Failed to open file +ORADG/mydb/spfilemydb.ora
    ORA-15173: entry 'spfilemydb.ora' does not exist in directory 'mydb'
    ORA-06512: at line 4
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 80%
    ORA-01034: ORACLE not available
    ORA-01034: ORACLE not available
    DBCA_PROGRESS : 89%
    DBCA_PROGRESS : 98%
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    PRKP-1001 : Error starting instance mydb1 on node rac1
    CRS-0215: Could not start resource 'ora.mydb.mydb1.inst'.
    PRKP-1001 : Error starting instance mydb2 on node rac2
    CRS-0215: Could not start resource 'ora.mydb.mydb2.inst'.
    DBCA_PROGRESS : 100%
    following info from my template file
    <MiscParams>
    <databaseType>MULTIPURPOSE</databaseType>
    <maxUserConn>20</maxUserConn>
    <percentageMemTOSGA>40</percentageMemTOSGA>
    <customSGA>false</customSGA>
    <archiveLogMode>false</archiveLogMode>
    <initParamFileName>+ORADG/admin/{DB_UNIQUE_NAME}/pfile/init.ora</initParamFileName>
    </MiscParams>
    <SPfile useSPFile="true">{ORACLE_HOME}/dbs/spfile{SID}.ora</SPfile>
    </InitParamAttributes>
    and dbca create +ORADG in /home/oracle dir (why??)
    [oracle@rac1 ~]$ ls +ORADG/admin/mydb/pfile/init.ora.6132011173958
    +ORADG/admin/mydb/pfile/init.ora.6132011173958
    Edited by: 859340 on 2011-7-12 下午7:25

  • Using DBCA 11g r2

    Hi,
    I installed 11g r2 and created database as well along with it.
    I wanted to use dbca to create another database but there is no "database configuration assistant" in "Configuration and migration tools" in program files.
    can someone tell as to why this option is not there in 11g r2, also how to use dbca.
    thanks

    user10243788 wrote:
    thanks aman, i set the path for 11gr2 home, still dbca invokes for 11gr1, would have been easier had "database configuration assistant" been displayed in "Configuration and migration tools" in program files, any idea why its not present, while its present in 11gr1.Dear user10243788 .In windows menu you can do not see "database configuration assistant",there are may several reasons.But there main matter is running dbca and create database in 11gr2 environment. To performing this you need set properly ORACLE_HOME environment variable then try as below
    set ORACLE_HOME=D:\oracle\product\10.2.0\db_1 /*this is example and you need set 11gr2 home*/
    %ORACLE_HOME%\bin\dbcathen create database.In additionally you can add shortcut of dbca to menu.
    Edited by: Chinar on Aug 14, 2010 4:02 AM

  • Using DBCA to duplicate a 10gR2 RAC DB to another box...

    Hi All :)
    Background:
    =========
    I am attempting to use DBCA to create a database based on a template dump (structure and data) from my source system.
    My source systems is/was RAC enabled and was using a NFS "clustered" file system for shared storage (not RAW or ASM).
    The target DB $ORACLE_HOME was "cloned" from the source system using an Apps methodology called RapidClone (which is a supported way to install a new DB Techstack for use with Apps - Apendix - A of 406982.1).
    I am running DBCA from the new target $ORACLE_HOME however it is really only a software home at present...meaning, the tns listeners are not correct, there exists no valid pfile, etc....nothing that really associates the instance to this home.
    QUESTIONS:
    ==========
    1. Let's remove Apps from the picture for a minute. If I was attempting to clone a RAC DB to another box, and I did a software only install on the target box and used DBCA to create the DB based on my existing DB template......would I need to "prep" the new target DB $ORACLE_HOME before running the DBCA create from template script??
    2. Because this is RAC...I fully expect to have to add the instances and listeners to CRS manually, and understand I will need to configure the listener and tnsnames files....But does DBCA have the ability to at least bring up the new target system DB on a single node such that I can create my spfiles, and listeners and such?
    3. Would it be advisable to disable RAC, simplifying my source system configuration, and then create my DBCA template based on the system "data as well as structure" and then create the new target DB with the more simplistic configuration and then re-enable RAC?
    Thanks for any guidance or help.

    Wow Sybrand...
    You are just full of hostility man. People using Oracle products come from differing backgrounds and while your strong suit might be RMAN and the DB....others might know more about framework, java or the middleware products...and come here seeking guidance...and then get insulted by folks like you.
    DBCA can be run from the command line, which is my objective later. Yes, RMAN is better suited to do what I am trying to do however I have additional existing (Apps specific) code which is NOT suited to RMAN.
    I would suggest you see the DBCA docs:
    This is just one example:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/install003.htm#i1008647-->scroll down to "From an existing database (structure and data)"....
    Also...try the following search in google:
    DBCA clone database....
    You will see many people seem to advocate using this method of database cloning and it has worked for them and not just for empty databases.
    I would be appreciative if responses would be limited to those with experience in using DBCA to duplicate an existing database....not with criticisms and reasons why some other tool should be used.
    Thanks in advance.

  • Listener pre-requisite for create database using dbca

    Hello All:
    Oracle binaries successfully installed using dbca (Advanced Installation, Custom, Install DB software only)
    Now when i use dbca to create a database, i have noticed one of the screen prompts me to "Select the listeners for which you want to register the database".
    Question:
    Do we have to create the listener before we create the database so we can register the database.
    Is this a standard step asking us to register the database with the listener or we can get along with the create database without having to create the listener ahead of the database creation.
    Is this step asked because of the type of install i choose earlier for binaries using dbca (Advanced Installation, Custom, Install DB software only)
    Thanks
    San~

    sannidhi wrote:
    The screen doesn't let me go on to the other screen without making a selection. That is the reason i was wondering if it has been tied up the the install options you choose when you install software only.
    Thanks
    San~I don't have dbca in front of me at the moment, but does it present you with a list from which to choose? If so, is one of the choices 'listener' or 'default'? If so, choose one of those.

  • How secured is deleting db using DBCA

    Dear all,
    Am planning to convert a single node DB to RAC..
    in the note,it is mentioned to create a DBCA template of the single node DB (with data and structure) and delete the existing DB using DBCA and create a RAC DB using DBCA and using the template created earlier ?
    Can I rely on this ?
    Please suggest
    Kai

    Hello,
    DBCA takes care of everything while deleting instance whereas in manually you have to run several steps. I also like using drop database which generally take care of everything too (little skeptical about deleting datafiles but I think it deletes datafiles) as well.
    See following links how to use drop database and database should be in restrict mode before dropping it
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_8009.htm#SQLRF01513
    Regards
    Edited by: OrionNet on Mar 14, 2009 11:40 AM

  • ORA-22275 Invalid lob locator when using CLOB from a view

    Hi,
    I am having problems when passing a CLOB from a "Union all" view to a function. I get an ORA-22275 error when trying to construct an XmlType from the CLOB and
    the CLOB originates from a view. If the CLOB originates from a table, eveyting works fine. Here is the code, that reproduces the problem
    CREATE TABLE testclob
        (field1                         CLOB)
    -- insert some data
    insert into testclob values ('<a/>');
    -- Define a clob view over some tables
    create or replace view v_testclob
    (field1)
    as
    select field1 from testclob
    union all
    select field1 from testclob; -- in reallity I use different tables
    -- Creat a functions that proceses the CLOB
    CREATE OR REPLACE
    function MyFunction(v_myClob clob) return VARCHAR2
    IS
       myXML XMLTYPE;
    BEGIN
      select xmltype(v_myClob) into myxml from dual; -- the view crashes ** HERE **
      -- code ommited
      return 'some data';
    END;
    -- Try to use the function:
    -- Selecting from a table works OK
    select myfunction(field1) from testclob;
    -- Selecting from the view crashes
    select myfunction(field1) from v_testclob;
    Error: ORA-22275: invalid LOB locator specified ORA-22275: invalid LOB locator specified ORA-06512: at "D_TEST.MYFUNCTION", line 6
    -- I using the following version:
    select * from v$version;
    -- Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production      
    -- PL/SQL Release 9.2.0.1.0 - Production                           
    -- CORE     9.2.0.1.0     Production                                       
    -- TNS for 32-bit Windows: Version 9.2.0.1.0 - Production          
    -- NLSRTL Version 9.2.0.1.0 - Production The only workaround I have found is to use substr
      select xmltype(dbms_lob.substr(v_myClob)) into myxml from dual; -- workaround.. but this mght trucnate my data.
    What am I doing wrong?
    Matej

    You need to apply the latest patchset for your version of the database on your version of the operating system:
    SQL> CREATE TABLE testclob
      2      (field1                         CLOB)
      3
    SQL> /
    Table created.
    SQL>
    SQL> -- insert some data
    SQL> insert into testclob values ('<Data>Testing</Data>')
      2  /
    1 row created.
    SQL>
    SQL> -- Define a clob view over some tables
    SQL>
    SQL> create or replace view v_testclob
      2  (field1)
      3  as
      4  select field1 from testclob
      5  union all
      6  select field1 from testclob
      7  /
    View created.
    SQL>
    SQL> -- Creat a functions that proceses the CLOB
    SQL>
    SQL> CREATE OR REPLACE
      2  function MyFunction(v_myClob clob) return VARCHAR2
      3  IS
      4     myXML XMLTYPE;
      5  BEGIN
      6
      7    select xmltype(v_myClob) into myxml from dual; -- the view crashes ** HERE **
      8    -- code ommited
      9    return 'some data';
    10  END;
    11
    12  /
    Function created.
    SQL> -- Try to use the function:
    SQL> -- Selecting from a table works OK
    SQL> select myfunction(field1) from testclob;
    MYFUNCTION(FIELD1)
    some data
    SQL>
    SQL>
    SQL> -- Selecting from the view crashes
    SQL> select myfunction(field1) from v_testclob;
    MYFUNCTION(FIELD1)
    some data
    some data
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    SQL>

  • Utl_http does not give a very helpful error message: Invalid Parameter

    I'm writing PL/SQL to consume a web service on another server. In trying to execute this snippet of code, I receive this error:
    ORA-28783: Invalid parameter
    ORA-06512: at "SYS.UTL_HTTP", line 1023
    ORA-06512: at line 29
    Line 29 is the utl_http.begin_request statement shown below.
    I'm baffled as to what the error message might point to and I'm looking from any insight others may have. The message is so generic as to be useless and I can't find any examples of others receiving this particular error when executing begin_request.
    Please note that this is an SSL/HTTPS connection. If I remove the "S" and just use HTTP, I receive an appropriate message from the web server. (A tiny web page telling me I should be using the https version and not the http version.) I can also go to, for example, Google or CNN's web sites and pull back data but those are not SSL connections. It is the SSL part that isn't working.
    This isn't a SOAP error since I never get a chance to create my SOAP message and place it in the request.
    I've tried changing the POST to GET and the HTTP version to 1.0 just to see if the error message changes and it does not.
    My wallet file is in place on the database server, placed in an accessible folder by
    the DBAs. This code can see the wallet, I believe, because if I change the wallet
    path to something non-existent, I receive a different error. I imported the web site certificate for the site I'm connecting to and placed that in the wallet. I've been able to cause "certificate chain" errors with empty wallets, so I think the certificate is correct.
    I used SOAP-UI (www.soapui.org) and was quickly able to connect to the web server and begin having a "SOAP conversation", so I know the web services I'm connecting to are working. It is something in the database itself that is preventing this from executing - the wallet, a setting in the database, something like that. But what?
    =======================================================
    utl_http.set_response_error_check(enable=>true);
    utl_http.set_detailed_excp_support(enable => TRUE);
    utl_http.set_follow_redirect(5);
    utl_http.set_wallet('file:/...', '*******');
    --**** SET THE URL FOR THIS REQUEST *******
    http_req:= utl_http.begin_request(
    'https://....' --location of web services I want to use
    , 'POST'
    , utl_http.HTTP_VERSION_1_1
    =======================================================

    You seemrd to have ruled out most potential problems I could think of.
    The error message just states that there is something wrong with the parameters that you use. Only point I can currently think of is a problem with the returned value.
    How did you declare you http_req variable? Does it use the utl_http.req type?

  • ORA-01435: user does not exist when using imp utility

    I installed Oracle 8.1.7.0.0 successfully on WINDOWS 2000 and created a database TEST using DBCA. Then I used a script to creat a tablespace and a user in TEST databse. I could use the imp utility to import the data (a dmp file) to the TEST database without any problem. But after I applied a patch to bring up the version to Oracle 8.1.7.4.1, I got the following error when I tried to use the imp utility again to import the data (a dmp file) to the TEST database.
    IMP-00003: ORACLE error 1435 encountered
    ORA-01435: user does not exist
    IMP-00000: Import terminated unsuccessfully
    I checked that I created the same user test (as it is in dmp file I wanted to import) on TEST, and I could login to TEST using:
    sqlplus test/test@TEST
    The command I used is:
    imp system/password@TEST file=test.dmp full=y log=importTEST.TEST.tmp
    I also tried to use the following command:
    imp system/password@TEST file=test.dmp fromuser=test touser=test log=importTEST.TEST.tmp
    and got the same error as before.
    Anyone has any clues what could go wrong? The only difference for me to import the data on TEST is that the
    previous successful import was done in Oracle 8.1.7.0.0.
    Is it possible that I missed something during the applying of the patch 8.1.7.4.1?
    Thanks, and your help is greatly appreciated.
    Jane

    Ther is a set of instruction to be followed after installing the patch set 8.1.7.4.1 after running it thru OUI.They are as follows. Please complete these steps and u should not have problems any more.
    When applying this patchset on Windows NT and Windows 2000, you must log onto the system as a user with Administrative privileges (e.g., as a user which is a member of the local Administrators group).
    1.Disabling system triggers.
    Before performing the next step, you must first set SYSTEMTRIG_ENABLED = FALSE in the initialization parameter file. To do this add the following line to your init<sid>.ora file and restart the database (see Note 149948.1 in Metalink for more information on this issue).
    systemtrig_enabled=false
    2.Invoke SQL*Plus (sqlplus), connect as internal and run the following:
    select * from duc$ where PACK='JIS$INTERCEPTOR$' ;
    If no rows were returned go to the next step. If a row was returned delete it using the following:
    delete from duc$ where PACK='JIS$INTERCEPTOR$' ;
    commit;
    3.Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL scripts with event 10520 set. NOTE: This event is not intended for regular database operation and when turned on below by the 'ALTER SESSION' command will automatically be turned off by the subsequent 'CONNECT' command.
    ALTER SESSION SET EVENTS '10520 TRACE NAME CONTEXT FOREVER, LEVEL 10';
    ?/rdbms/admin/catalog.sql
    ?/rdbms/admin/catproc.sql
    ?/rdbms/admin/catrep.sql (This only needs to be run if you are using symmetric/advanced replication. This is not necessary for sites using dblinks and read-only snapshots if symmetric/advanced replication is not installed)
    CONNECT / AS SYSDBA;
    update obj$ set status=5 where type#=29 and owner#!=0;
    commit;
    4.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install.
    If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following SQL DDL command(* Note:If Java has not previously been loaded into the database, skip this step).:
    SQL> create or replace java system
    2 /
    (Note that the / (slash) is important to ensure the execution of the command).
    To ensure the correct installation of the XDK in the database run the following 2 scripts (Bug 2115227):
    $ORACLE_HOME/oracore/admin/initxml.sql
    $ORACLE_HOME/rdbms/admin/catxsu.sql
    * To determine whether Java has previously been loaded into the database:
    invoke SQL*Plus (sqlplus), connect as internal and run the following:
    SQL> select count(*) from all_objects where object_type like 'JAVA%';
    Java is installed if you get a non zero result returned from the query.
    5.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following scripts which are located in $ORACLE_HOME/javavm/install ( Note: If Java has not previously been loaded into the database, you can skip this step):
    load_jis.sql
    jisja.sql
    initjsp.sql
    jspja.sql
    Notes:
    When running the $ORACLE_HOME/javavm/install/jisja.sql script the following error may be reported and can be ignored:
    call jis_exit_java_session(0)
    ERROR at line 1:
    ORA-29515: exit called from Java code with status 0
    Bug 1459233 was filed against this problem which is fixed in 9i.
    6.If you deleted a row from duc$ in step 8 then reinsert it again. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL:
    insert into duc$ (OWNER, PACK, PROC, FIELD1, OPERATION#, SEQ) values ('SYS', 'JIS$INTERCEPTOR$', 'USER_DROPPED', 0, 1, 1);
    commit;
    7.Enabling system triggers.
    You must either remove SYSTEMTRIG_ENABLED from the initialization parameter file or explicitly set it to TRUE before attempting any other patch set post-install steps. Restart the database.
    8.This step is optional - it will recompile all invalid PL/SQL packages now rather than when accessed for the first time - you can also use utlrcmp.sql to parallelize this. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL script:
    ?/rdbms/admin/utlrp.sql
    9.Execute the following steps only if you have installed Oracle interMedia Text in the database you are attempting to modify:
    If you have not previously unlocked the ctxsys account and supplied a password for that account, you need to do so. (If you have needed to use Oracle Text in any way prior to applying the patchset, you will have already performed this step, and you can skip this.) Do so by issuing the following statement:
    ALTER USER ctxsys IDENTIFIED BY <passwd> ACCOUNT UNLOCK;
    If you have already installed 8.1.7.2 or 8.1.7.3, go directly to step 7 below.
    If you have already installed 8.1.7.1, go directly to step 5 below.
    CONNECT ctxsys/<passwd>;
    @?/ctx/admin/upgrade/u0801071.sql
    CONNECT ctxsys/<passwd>;
    @?/ctx/admin/upgrade/u0801072.sql
    CONNECT / AS SYSDBA;
    @?/ctx/admin/upgrade/s0801074.sql
    CONNECT ctxsys/<passwd>
    @?/ctx/admin/dr0pkh.sql
    @?/ctx/admin/dr0plb.sql
    @?/ctx/admin/dr0type.plb
    @?/ctx/admin/dr0typec.plb
    9.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    The installation of this patch set fixes a potential security hole in the XSQL Servlet - see here for more detail. The patchset installation does not, however, modify any of the Oracle HTTP Server configuration files to reflect changes to the XSQL Servlet installation. If you have previously installed the Oracle HTTP Server, you will need to update one of the configuration files manually after the patchset installation is complete. If you do not do so, the XSQL Servlet may not work in the context of the Oracle HTTP Server after the patchset is installed. To update your Oracle HTTP Server configuration, perform the following steps:
    1) Edit the file: $ORACLE_HOME/Apache/Jserv/conf/jserv.properties
    2) Search for the string: "XSQLConfig.xml File location"
    3) Modify the parameter wrapper.classpath on the line immediately following the above string to read: $ORACLE_HOME/oracore/admin
    4) Save the file.
    10.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    The installation of this patch set fixes a potential security hole in the PL/SQL XML parser - see here for more detail. To load the new XML parser in to the database, run the following script as user SYS:
    ? /xdk/plsql/parser/bin/load.sql
    11.If you are using the RMAN catalog then upgrade it as follows:
    rman catalog <user/passwd@alias>
    upgrade catalog;
    upgrade catalog;
    The post install actions are now complete and the database is now ready for use.

Maybe you are looking for