Release of pl/sql of division.

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

PL/SQL Release 11.2.0.4.0 - Production

CORE Production 11.2.0.4.0

AMT for Solaris: 11.2.0.4.0 - Production Version

NLSRTL Version 11.2.0.4.0 - Production

I'm sure this has been asked before.  But I don't know what it would be called to perform a search on this subject.  So my apologies in advance.

How share the output of a query, so that "parent" and "child" columns.

I loaded out with the creation of triggers for all tables in a schema.  So instead of going to table by table, try to copy the column names, I ran a pl/sql block to extract all all_tab_cols.

The VALUE SERVEROUTPUT ON SIZE 100000

SET FEEDBACK WE

tabnam all_tab_cols % ROWTYPE;

FOR tabnam IN (SELECT column_name of the table table_name )

FROM all_tab_columns

WHERE owner = 'WBBETTERS')

LOOP

DBMS_OUTPUT. Put_line ()tabnam. table-name || ',' || tabnam . column_name || ' = :NEW.' || tabnam . column_name );

END LOOP;

output of very small samples:

FY14_DSF_DATA, INTERVIEW_TIME_START =: NEW. INTERVIEW_TIME_START

FY14_DSF_DATA, LAST_UPDATE =: NEW. FY14_DSF_DATA, LAST_UPDATE

FY14_DSF_DATA, SITE_CN_FK =: NEW. FY14_DSF_DATA, SITE_CN_FK

FY14_DSF_DATA, AFOREST_CODE =: NEW. FY14_DSF_DATA, AFOREST_CODE

FY14_INDIVIDUAL_DATA, PURPOSE_SITE_WORKING =: NEW. PURPOSE_SITE_WORKING

FY14_INDIVIDUAL_DATA, FROM ONE DAY TO THE NEXT =: NEW. DURING THE NIGHT

FY14_INDIVIDUAL_DATA, NVEXPAND =: NEW. NVEXPAND

FY14_INDIVIDUAL_DATA, FORM =: NEW. FORM

What I wish TO see:

INTERVIEW_TIME_START = FY14_DSF_DATA: NEW. INTERVIEW_TIME_START

LAST_UPDATE =: NEW. FY14_DSF_DATA, LAST_UPDATE

SITE_CN_FK =: NEW. FY14_DSF_DATA, SITE_CN_FK

AFOREST_CODE =: NEW. FY14_DSF_DATA, AFOREST_CODE

PURPOSE_SITE_WORKING = FY14_INDIVIDUAL_DATA: NEW. PURPOSE_SITE_WORKING

FROM ONE DAY TO THE NEXT =: NEW. DURING THE NIGHT

NVEXPAND =: NEW. NVEXPAND

SHAPE =: NEW. FORM

This way I can just enter each section and put it in the context of trigger to build it.

If you know a better way, I'm open to that as well, but please answer even this issue I can see value in learning what it is.

Thank you.

Yes, LISTAGG is limited to 4000 bytes. You can use XMLAGG:

SELECT TABLE_NAME,

(XMLCAST)

XMLAGG)

XMLELEMENT)

e,

COLUMN_NAME | ': NEW.'. COLUMN_NAME,

CHR (10)

)

ORDER OF COLUMN_ID

)

AS CLOB

) COLUMN_NAME

FROM ALL_TAB_COLUMNS

WHERE OWNER = "WBBETTERS."

TABLE_NAME GROUP

/

For example:

SQL > SELECT TABLE_NAME,.
2 LISTAGG(COLUMN_NAME ||) ': NEW.'. COLUMN_NAME, CHR (10))
3 IN COLUMN_NAME GROUP (ORDER BY COLUMN_ID)
4 FROM ALL_TAB_COLUMNS
5. WHERE OWNER = 'SCOTT '.
6 AND TABLE_NAME = "CLM_TRANS_DTL."
TABLE_NAME GROUP 7
8.
SELECT TABLE_NAME,
*
ERROR on line 1:
ORA-01489: result of concatenating string is too long

SQL > SET LONG 10000
SQL > SELECT TABLE_NAME,.
() 2 XMLCAST
XMLAGG 3)
4 XMLELEMENT)
5                                    e,
COLUMN_NAME 6 | ': NEW.'. COLUMN_NAME,
7                                    CHR(10)
8                                  )
9 ORDER OF COLUMN_ID
10                        )
11 AS CLOB
(12) COLUMN_NAME
ALL_TAB_COLUMNS 13
14. WHERE OWNER = 'SCOTT '.
15 AND TABLE_NAME = "CLM_TRANS_DTL."
16 TABLE_NAME GROUP
17.

TABLE_NAME COLUMN_NAME
---------- ----------------------------------------------------------------
CLM_TRANS_ CLM_TRANS_DTL_ID: NEW. CLM_TRANS_DTL_ID
DTL FILE_FEED_HDR_ID: NEW. FILE_FEED_HDR_ID
RCV_FILE_DTL_ID: NEW. RCV_FILE_DTL_ID
TRANS_ISSUE_STAT_CD: NEW. TRANS_ISSUE_STAT_CD
CLM_SYM_CD: NEW. CLM_SYM_CD
CLM_KEY: NEW. CLM_KEY
TRANS_SEQ_NUM: NEW. TRANS_SEQ_NUM
TPA_ID: NEW. TPA_ID
BENE_ST_ABBR: NEW. BENE_ST_ABBR
TPA_ADJR_FULL_NM: NEW. TPA_ADJR_FULL_NM
TPA_SUPER_FULL_NM: NEW. TPA_SUPER_FULL_NM

...

TABLE_NAME COLUMN_NAME
---------- ----------------------------------------------------------------
TPA_OFF_NM: NEW. TPA_OFF_NM
SUBRO_POTNTL_IND: NEW. SUBRO_POTNTL_IND
BANK_ACCT_OWNR_CD: NEW. BANK_ACCT_OWNR_CD
TRANS_SUBM_CD: NEW. TRANS_SUBM_CD
REC_TYP_CD: NEW. REC_TYP_CD
TPA_CLM_SUBRO_RECOV_EXPNS_AMT: NEW. TPA_CLM_SUBRO_RECOV_EXPNS_AMT
TPA_CLM_SLVG_RECOV_EXPNS_AMT: NEW. TPA_CLM_SLVG_RECOV_EXPNS_AMT
TPA_CLM_REFND_RECOV_EXPNS_AMT: NEW. TPA_CLM_REFND_RECOV_EXPNS_AMT
TPA_CLM_STAT_CD: NEW. TPA_CLM_STAT_CD
DEFNS_ATTY_FIRM_NM: NEW. DEFNS_ATTY_FIRM_NM
DEFNS_ATTY_FIRM_STR_ADDR: NEW. DEFNS_ATTY_FIRM_STR_ADDR

REC_INSRT_TMSP: NEW. REC_INSRT_TMSP
REC_INSRT_OPER_ID: NEW. REC_INSRT_OPER_ID
REC_START_DT: NEW. REC_START_DT
REC_END_DT: NEW. REC_END_DT

SQL >

SY.

Tags: Database

Similar Questions

  • Integrate SQL Developer with IBM's Clearcase Version control

    Hello

    I explored the part of version control for SQL code by incorporating my SQL with Clearcase from IBM Developer. So far I have not been successful with it, I managed to remove the SVN Version control options, but I am not able to use it for my Clearcase link. Could I know please if there is any plugin available from Oracle for this to do. If it please help & drop your suggestions.


    Thank you

    Michael ([email protected])

    Hi Julien,

    There is ClearCase comes available for JDeveloper extension versions, and as any given SQL Developer release some releases JDeveloper, you may be able to find an appropriate version of the extension for your use case.  Looking for ClearCase in the center of update JDev:
    http://www.Oracle.com/ocom/groups/public/@OTN/documents/WEBCONTENT/131167.XML

    Of course, ClearCase is Nolisted in the release notes for SQL Developer as a supported Version control system:

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/sqldev-releasenotes-v4-1925251.html

    If you want to give it a go, however, here's what I did to install a ClearCase plug-in for my 4.0.1 Developer SQL...

    1. check the SQL Developer Help > about > Extensions for the version of oracle.jdeveloper.vcs (12.1.3.2.41.140207.1351)

    2 downloaded vcs - clearcase_bundle.zip (12.1.2.0.40.66.68 is the closest available JDev version)

    3. in the zip file, modify or replace the value of the property maxVersion in the META file - INF\bundle.xml (from 12.1.2.0.40.66.68 to 12.1.3.2.42.99.99)

    4. install the zip: Tools > features... > Check for Updates (top-right) > install from a Local (radio button) file...

    5. now, ClearCase will be available from the main tool bar: team > ClearCase

    I don't have a ClearCase installed on my machine, so that's as far as I could go.  I hope that you will still make progress.

    Kind regards
    Gary

    SQL development team

  • What are the versions of SQL Server supported with Appvolumes 2.9?

    According to the release notes: only SQL Server 2008 and SQL Server 2012 are supported: App Volumes 2.9 Release Notes

    According to the user's Guide: SQL Server 2008 R2 SP1, SP1 of SQL Server 2012 and 2014 of SQL Server are supported: https://www.vmware.com/pdf/app-volumes-29-users-guide.pdf

    My customer wants to switch to SQL Server 2014? Is this supported? Is this work?

    Hello

    Thank you for discovering the incompatibility.

    Versions SQL mentioned in the release note is correct and the user's guide is incorrect. Server SQL 2014 is not yet supported.

  • Syntax of PL/SQL without papers. Keyword 'private '.

    Hello
    I'm a PL/SQL-programmer and programmer Ada too. PL/SQL is derived from Ada83. Now since I'm used to Ada sometimes I Ada syntax elements in the PL/SQL code. Normally, the PL/SQL-compiler complains and does not compile. But look at the following example:

    create or replace package privatetest is
    var varchar2 (100): = 'Test ';
    operative;

    private - Word - key undocumented
    PrivateVar varchar2 (100): = 'Test ';
    end privatetest;
    /
    create or replace package body is privatetest
    test procedure
    is
    l_var varchar2 (100);
    Start
    l_var: = privatevar;
    PrivateVar: = l_var;
    end test;
    end privatetest;
    /

    This can be compiled with PL/SQL release 10.2.0.4.0. Private package dry parts are normal in Ada Ada allows the children to packaging and then you need this mechanism of masking. In more complex situations, I met a strange behavior during execution so 'private' is used in PL/SQL.

    Question: Is this a historical vestige that the compiler accepts the keyword or ist it plans to allow the private parts child packing in the future releases from PL/SQL?

    Kind regards
    Frank Piron

    user5200696 wrote:
    I wanted to point to this "feature" without papers because it is a real trap for Ada programmers who write code in PL/SQL too.

    It smells the opportunity to write your ADA-> PL/SQL experiences in a blog or an article - it seems like a shame to your experiences of learning to go not shared.

  • SQL Developer connection problems

    Hello

    I use SQL developer 1.5.1 and trying to connect to Oracle 8.1.5. I give the name of user and password, and all related details and when I try to test or to connect, I get the following error: Unsupported Version of Oracle database

    Please let me know if not compatible with older versions of oracle SQL developer 1.5.1. And is there a workaround for this problem. Appreciate your help.

    Thank you

    Hello

    Developer 1.5.1 SQL does not support Oracle 8i.

    Pls check the release notes for SQL Developer 1.5, he says that he does not connect to the DB Oracle 8i.

    Kind regards
    Ludmilla amine
    http://oracleracexpert.blogspot.com
    [Block restore with RMAN | http://oracleracexpert.blogspot.com/2009/08/block-recovery-using-rman.html]

  • TMS, Windows update

    Could you please help me find compatibility for TMS Version: 13.2.2 with Windows server 2012 R2.

    The existing server is Windows 2008 R2 Enterprise and company want to upgrade only windows server not TMS.

    SQL version is 2008 and SQL Management studio 2008 R2.

    I don't have large exhibition with TMS and SQL. Would be great if someone can help on this.

    Kind regards

    Sanchez

    TMS 13.2.2 does not support Windows Server R2 2012.  See page 6 of the installation here guide:

    TMS 13.2 installation guide

    Minimum version of TMS to 2012 R2 server support I think is 14.6. Non - R2 version gets helped 14.4.  SQL 2008 R2 (64-bit) is supported through all mentioned versions, including your own, until the current 15.2 release.  Supported SQL 2012 begins with 14.4.

    What is the reason for which the company wants to upgrade the server, but not the TMS version?  If you migrate to a new server, you will be reinstalling TMS anyway.

    Last day of support of MSD 13.x is December 31, 2017.

  • Is it possible to avoid the "" Record 1: discarded - failed all the clauses WHEN. ' "

    When using when clause sqlldr. It generates too many lines as below-

    "Record 1: discarded - failed all WHEN clauses."

    "" Sheet 2: discarded - failed all WHEN clauses. ""

    "" Record 3: discarded - failed all WHEN clauses. ""

    ' Record 4: discarded - failed all WHEN clauses. »


    If she rejects millions of records. in the log file, it shows millions of lines. size of the log file is too big.

    He takes seriously the space on my hard drive.

    at the same time I need other details in the log-file

    125466 lines loaded successfully.

    0 rows not loaded due to data errors.

    65523 lines not loading because all WHEN clauses were failed.

    0 rows not populated because all fields are null.

    Run started on Fri Jan 23 12:27:16 2015

    Run finished Fri Jan 23 12:27:18 2015

    Time was: 00:00:01.70

    Time processor was: 00:00:01.16

    None of the parameters of SQLLDR to avoid these lines...?

    Oracle 11.2.0.1.0

    Windows 2008

    Although you can use SILENT = RELEASES in your SQL * Loader command line to remove the output to the screen, as much as I know there is no way to remove in your log file.  However, if you use an external table, you can use NOLOGFILE, but which eliminates the whole logfile, not only releases and requires that the data file is on the server, not the client.

  • Need to update the table

    Release of PL/SQL version 11.2.0.2.0 - Production

    Hi gurus

    You need assistance in question. I have the following data:

    Sample data


    drop table aa;

    drop table bb;
    create table aa
    (
    cust_no number (5),
    cust_name varchar2 (30)
    );

    Insert in the NOA
    (
    Select 100, 'A' from two
    Union of all the
    Select 200, 'B' double
    Union of all the
    Select 300, 'C' of the double
    );

    create table bb
    (
    cust_no number (5),
    cust_caty varchar2 (15)
    );
    Insert into bb
    (
    Select NULL, 'Potential' from dual
    Union of all the
    Select NULL, 'Not Potencial' of the double
    Union of all the
    Select NULL, "Unknown" of the double
    );

    Now, I want to update my bb with cust_id without no join table...

    My required data should be something like below in the table of bb:

    CUST_NO, CUST_CATY

    100 potential

    200 potential not

    300 stranger

    Please note that it doesn't matter what cust_no arrive at any cust_caty

    Concerning

    Shu

    Hi, Shu,

    Here's one way:

    MERGE INTO dst bb

    WITH THE HELP OF)

    WITH aa_r_num AS

    (

    SELECT cust_no

    ROWNUM AS r_num

    AA

    )

    bb_r_num AS

    (

    SELECT cust_caty

    ROWNUM AS r_num

    BB

    )

    SELECT a.cust_no

    b.cust_caty

    Of aa_r_num one

    JOIN bb_r_num b ON b.r_num = a.r_num

    )             src

    WE (dst.cust_caty = src.cust_caty)

    WHEN MATCHED THEN UPDATE

    SET dst.cust_no = src.cust_no

    ;

    The results I get are exactly what you posted:

    CUST_NO CUST_CATY

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

    100 potential

    200 potential not

    300 stranger

    But there is no guarantee that the same cust_no at the same cust_caty when you run it.

    As posted, which means that bb.cust_caty is unique and not NULL.

    If there are N + X lines in the bb, but only N lines in aa, then only N lines in bb will be updated.

    Why do you want to do "without no join"?  If a join is the most simple, average the most effective to achieve the results expected, so why not use it?

    If you really want to avoid the join, you can use a scalar subquery.

  • Sybase to the Migration of Oracle: issues of assignment of object names

    I'm migrating Sybase to Oracle databases. By default, the name of the schema that results is < owner > _ < dbname > (dbo_SALES). To change this, I'm following the example to migrate objects in an existing user, as described here: http://dermotoneill.blogspot.com/2012/03/migrate-to-existing-oracle-users.html

    The name of object change "DATABASE.dbo" to "DATABASE" - and it seems to work very well. The problem I have is that there are many references to the DATABASE... OBJECT that do not include "dbo", the owner of the object. These references seem to be replaced by dbo_DATABASE. Object.

    Is there a way I can add another rule to the object name to catch these references? I am OK the migration offline, but I'd like to avoid performing a find/replace massive.

    Other ideas would be appreciated!
    Kevin

    Hey Kevin,

    I played a bit with a few examples and I was able to reproduce your problem with dbo... conversion of object name.
    Looks like we are trying to guess the name of the target that we did not seize the owners of default database. Speculation works well, unless you specify the name of the target, as in your case.
    Using SQL Developer 3.2.2 there is no solution except the search and replace dbo_databasename in the build script, as you suggest.
    Sick, working on a better solution for the next release, if Developer SQL will guess 'dbo' as the user, then it may as well find the name of the specified target of the dbo instead to assume the default value of naming conversion.
    Thanks for the comments,

    Kind regards
    Dermot.
    SQL development team.

  • Please help, data queue on the remote server

    Hello Experts,

    Kindly help, to learn how to roll up the data from the remote server. I need a detailed procedure to make settings on my local machine to connect to remote Oracle using SQL Server * MORE.

    I installed on my local machine which is 32-bit Oracle 11 g Release 2:+.

    SQL * more: Production of release 11.2.0.1.0 Fri Feb 8 12:02:30 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    Enter the user name: SYSTEM
    Enter the password:

    Connected to:
    Oracle Database 11g Release 11.2.0.1.0 - Production

    SQL >

    and on a remote server below is the version installed.

    Log in as: B_DB1user
    [email protected] password:
    Last login: Sat Feb 7 18:19:35 2013 10.10.167.8
    [B_DB1user@bamdb001 ~] $ sqlplus

    SQL * more: version 11.1.0.7.0 - Production Fri Feb 8 12:06:35 2013

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

    Enter the user name: B_DB1user
    Enter the password:

    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options

    SQL >

    ----------------------------------------------------------------------------------------------------------------------------
    That's what I have in tnsnames.ora

    tnsnames.ora # Network Configuration file: E:\app\managerproj3\product\11.2.0\dbhome_5\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

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


    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.10.167.8)
    )
    )

    ---------------------------------------------------------------------------------------------------------------------------------
    That's what I have in listener.ora


    listener.ora # Network Configuration file: E:\app\managerproj3\product\11.2.0\dbhome_5\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    AUDITEUR1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.10.167.8)(PORT = 1521))
    )
    )

    ADR_BASE_LISTENER1 = E:\app\managerproj3

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = E:\app\managerproj3

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


    Database server: ORACLE
    HOSTNAME: BAMDB001
    IP address: 156.1.3.4


    and here is the script I tried data spool in the local computer using SQL * MORE

    set colsep,
    set pagesize 120
    Set trimspool on
    headsep off Set
    set linesize 1000

    coil D:\test\myfile.csv

    Select table_name, tablespace_name of all_tables;

    spool off

    It is effective on the local machine... Please help me to get the data from the remote server to the local computer?

    Kindly let me know if you need anything whatsoever.

    Thanks in advance

    Kind regards
    Bosch

    Is not more or less the same question you asked in {message identifier: = 10835497}?

    You must have a user to the remote database and an entry for the remote database in your tnsnames.ora file

    If you have just to coil of database of remote and local database didn't need to be involved:
    Edit your tnsnames.ora and add an entry with the remotedb, the information and you need to have the following information:

    Ip address or the name of the server (BAMDB001?)
    Name of the service (?)
    Port configured for this database. (??)

    Also, you must be sure that the connectivity of your local computer to a remote server is granted (without firewall block).
    Only when you have this information, you can connect to the remote database from your laptop.

    From the Unix server where you connect to the database, you can get the information to be inserted in your local tnsnames.ora by typing:

    tnsping dbname
    

    Of course, you need to replace dbname with the name of your database.
    Another way is to check the remote tnsnames.ora when logged in Unix:

    cat $ORACLE_HOME\network\admin\tnsnames.ora
    

    and check the configuration it.

    Kind regards.
    Al

  • Support virtual column?

    Hello

    There is some support planning add/edit the virtual columns?

    Kind regards.

    Hi, Giuseppe.

    Some information on the support of the virtual column (first available in Oracle 11 g Release 1) with SQL Developer.

    In the current version of the production, 3.2.20.09.87, manifested a definition of existing virtual column in the column default data tab of columns from the display of table help Add Action of the tab, there is no way to set a virtual column. Using the Edit from the context menu of the node of the table option, try to change a virtual column (or add a new virtual column) by updating the default text box will fail with something like the following error message:

    Invalid  Default Value
    Expression cannot use columns or user functions. Literal strings should be quoted....
    

    Looking the next development version, it seems that the user of Table Edit interface has been enhanced to include support for virtual column; However, trying to use the parser actually complained to virtual column expression is not valid. Maybe this improvement does not hangs properly still. Our Quality Assurance is aware of the issue and will record a bug later in the development cycle if the developer intercepts her.

    Kind regards
    Gary
    SQL development team

  • regexp_substr and select all the

    Hello

    I have this doubt, I have a query like this:

    SELECT *.
    TABLE
    WHERE DIVISION)
    SELECT REGEXP_SUBSTR (DIVISIONS, "[^,] +', 1, LEVEL") OF THE DOUBLE
    CONNECT REGEXP_SUBSTR (DIVISIONS, "[^,] +', 1, LEVEL") IS NOT NULL)
    ;

    It works fine when DIVISIONS his as "3,4,5,6.
    but I want, when DIVISION sound empty ("") it does not, filter

    Can you help me to find out how I can do this?

    Thank you

    What:

    SQL> var divisions varchar2(100)
    SQL> exec :divisions := '3,2,6,7,8,6,34'
    
    PL/SQL procedure successfully completed.
    
    SQL> -- generating sample data:
    SQL> with t as (
      2  select 1 div from dual union
      3  select 2 div from dual union
      4  select 3 div from dual union
      5  select 4 div from dual union
      6  select 5 div from dual union
      7  select 6 div from dual
      8  )
      9  --
     10  -- actual query
     11  --
     12  select *
     13  from   t
     14  where
     15    case
     16      when :divisions is null then 1
     17      when :divisions is not null
     18      and div in ( select regexp_substr(:divisions ,'[^,]+', 1, level)
     19                   from   dual
     20                   connect by regexp_substr(:divisions , '[^,]+', 1, level) is not null
     21                  ) then 1
     22    end = 1;
    
           DIV
    ----------
             2
             3
             6
    
    3 rows selected.
    
    SQL>  exec :divisions := '';
    
    PL/SQL procedure successfully completed.
    
    SQL> -- generating sample data:
    SQL> with t as (
      2  select 1 div from dual union
      3  select 2 div from dual union
      4  select 3 div from dual union
      5  select 4 div from dual union
      6  select 5 div from dual union
      7  select 6 div from dual
      8  )
      9  --
     10  -- actual query
     11  --
     12  select *
     13  from   t
     14  where
     15    case
     16      when :divisions is null then 1
     17      when :divisions is not null
     18      and div in ( select regexp_substr(:divisions ,'[^,]+', 1, level)
     19                   from   dual
     20                   connect by regexp_substr(:divisions , '[^,]+', 1, level) is not null
     21                  ) then 1
     22    end = 1;
    
           DIV
    ----------
             1
             2
             3
             4
             5
             6
    
    6 rows selected.
    
  • Uninstalling a connector in IOM errors

    I'm trying to uninstall the connector of the Table in the Application database (or any connector) into 11.1.1.5.0 OIM, but I get errors.

    Step 1: I change the ConnectorUninstall.properties, located under < OIM_HOME >/server/bin. The information below is what I have in this file.
    *(The values of the ConnectorName and Release are the same as the values in My OIM console Advanced->Manage Connector-> Search) *.

    ##############################################################################
    # DatabaseURL: Enter the JDBC URL for the Oracle Identity Manager database. #
    # Format of URL database to Oracle Database: #.
    # jdbc:oracle:thin:@hostname:dbport:iam/oracle_sid #.
    # DBUserName: IOM DB user name #.
    # DBType: Must be 'ORACLE '. Do not change the default value. #
    ##############################################################################
    DatabaseURL=jdbc:oracle:thin:@localhost:1521:orcl
    DBUserName = system
    DBType = ORACLE

    [Log]
    ##############################################################################
    # LogLevel: Enter the logging - INFO, DEBUG, or ERROR level. #
    # Location: Enter the location of the log file. #
    ##############################################################################
    LogLevel = DEBUG
    Location = C: / Oracle/logs/connector

    [Connector]
    ##############################################################################
    # Nom_connecteur: enter the name of the connector that you want to uninstall. #
    # Note: The name that you enter must be the same as the display name in #.
    # the table of search results on the main Connector Management page of the #.
    # Administrative and user Console. #
    ##############################################################################
    Nom_connecteur = DatabaseApplicationTables
    ##############################################################################
    # Release date: enter the version number of the connector you want to #.
    # Uninstall. #
    # NOTE: The version number you enter must be the same as the version #.
    number # displayed in the table of search results on the main connector.
    # page for managing the Administrative and user Console. #
    ##############################################################################
    Version = 9.1.0.5.0

    ##############################################################################
    # ObjectType: Enter 'ResourceObject', 'ScheduleTask', 'Search' or 'adapter '. #
    # ObjectValues: Enter a list separated by semicolons, of the values of the object. #
    # NOTE: In case you provide Nom_connecteur and release algonwith ObjectType #.
    # and ObjectValue, would in this case, the removal of ObjectValues #.
    # by the utility and information about the connectors would be just #.
    # skipped.                                         #
    ##############################################################################
    ObjectType =
    ObjectValues =







    Step 2: Run the uninstallConnector.sh script, which is located under < OIM_HOME >/server/bin.
    Below are the results when I run the script:

    *********************************************************************
    * This utility deletes the data from the database of the IOM directly and is *.
    * designed to be used in development/staging environments. *
    * *
    * WARNING: DO NOT USE IN PRODUCTION. *
    *********************************************************************
    Level of the logger: DEBUGGING
    Chosen Logger location: C:/Oracle/logs/connector
    [Enter the DB password:]
    [Enter the name of the administrator of the IOM:] xelsysadm
    [Enter the IOM administrator password:]
    [Enter the URL of the server of the IOM of t3 [Ex. t3: / / localhost:7001 /]:] t3: / / localhost:14000
    Connected to the database
    log4j: WARN no appenders could be found for logger (org.springframework.jndi.Jndi
    Model).
    log4j: WARN Please initialize log4j correctly system.
    "DatabaseApplicationTables 9.1.0.5.0" connector will be uninstalled
    You want to continue uninstalling connector y: y
    ConnectorUninstallException: oracle.iam.connectormgmt.uninstall.UninstallUtility
    Error occurred while getting the connector name and release: java.sql.SQLSyntaxEr
    rorException: ORA-00942: table or view does not exist

    Check the logs for more details.





    Here are my Logs:
    July 13, 2012 23:33:51 DEBUG Logger initialized
    July 13, 2012 23:33:51 DEBUG outgoing method: class validateAndInitiazeLogger: ConnectorUninstall
    July 13, 2012 23:33:51 DEBUG outgoing method: class loadPropertyFileAndLogger: ConnectorUninstall
    July 13, 2012 23:33:51 utility ConnectorUninstall start of DEBUGGING.
    July 13, 2012 23:33:51 DEBUG incoming method: class getDBPassword: ConnectorUninstall
    July 13, 2012 23:33:56 DEBUG outgoing method: class getDBPassword: ConnectorUninstall
    July 13, 2012 23:33:56 DEBUG incoming method: class getOIMAdminUserName: ConnectorUninstall
    July 13, 2012 23:34:07 DEBUG outgoing method: class getOIMAdminUserName: ConnectorUninstall
    July 13, 2012 23:34:07 DEBUG incoming method: class getOIMAdminPassword: ConnectorUninstall
    July 13, 2012 23:34:10 DEBUG outgoing method: class getOIMAdminPassword: ConnectorUninstall
    July 13, 2012 23:34:10 DEBUG incoming method: class getOIMServerT3URL: ConnectorUninstall
    July 13, 2012 23:34:23 DEBUG outgoing method: class getOIMServerT3URL: ConnectorUninstall
    23:34:23 July 13, 2012 entry Builder DEBUG class: UninstallUtility.
    July 13, 2012 23:34:23 DEBUG file validation properties...
    July 13, 2012 23:34:23 DEBUG incoming method: class validateAndPopulateDBAndConnectorParameters: UninstallUtility
    July 13, 2012 23:34:23 DEBUG outgoing method: class validateAndPopulateDBAndConnectorParameters: UninstallUtility
    July 13, 2012 23:34:23 DEBUG Valdiation successful... All the properties have been loaded.
    July 13, 2012 23:34:23 DEBUG database connection
    July 13, 2012 23:34:23 DEBUG incoming method: class getDatabaseConnection: UninstallUtility
    July 13, 2012 23:34:23 DEBUG jdbc:oracle:thin:@localhost:1521:orcl
    July 13, 2012 23:34:24 DEBUG logging
    July 13, 2012 23:34:24 DEBUG the method exit: class getDatabaseConnection: UninstallUtility
    July 13, 2012 23:34:24 DEBUG setting the OIMClient
    July 13, 2012 23:34:24 DEBUG incoming method: class setOIMClient: UninstallUtility
    July 13, 2012 23:34:25 DEBUG output method: class setOIMClient: UninstallUtility
    July 13, 2012 23:34:25 DEBUG successful in the creation of the OIMClient
    July 13, 2012 23:34:25 DEBUG out of class constructor: UninstallUtility.
    July 13, 2012 23:34:25 DEBUG incoming method: class doConnectorDeletion: ConnectorUninstall
    July 13, 2012 23:34:25 DEBUG incoming method: class validateDirectDeletion: UninstallUtility
    July 13, 2012 23:34:25 DEBUG output method: class validateDirectDeletion: UninstallUtility
    July 13, 2012 23:34:28 DEBUG incoming method: class executeDirectDeletion: UninstallUtility
    July 13, 2012 23:34:28 DEBUG incoming method: class verifyConnectorInstalled: UninstallUtility
    July 13, 2012 23:34:28 values of the parameters of DEBUGGING sConnectorName = DatabaseApplicationTables sConnectorRelease = 9.1.0.5.0
    July 13, 2012 23:34:28 oracle.iam.connectormgmt.uninstall.UninstallUtility ERROR occurred while obtaining the name of the connector and release: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    July 13, 2012 23:34:28 ERROR ORA-00942: table or view does not exist

    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:862)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1153)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1275)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at oracle.iam.connectormgmt.uninstall.UninstallUtility.verifyConnectorInstalled(UninstallUtility.java:740)
    at oracle.iam.connectormgmt.uninstall.UninstallUtility.executeDirectDeletion(UninstallUtility.java:314)
    at oracle.iam.connectormgmt.uninstall.ConnectorUninstall.doConnectorDeletion(ConnectorUninstall.java:369)
    at oracle.iam.connectormgmt.uninstall.ConnectorUninstall.main(ConnectorUninstall.java:83)
    July 13, 2012 23:34:28 oracle.iam.connectormgmt.uninstall.UninstallUtilityError ERROR in obtaining the name of the connector and release: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    oracle.iam.connectormgmt.uninstall.ConnectorUninstallException: oracle.iam.connectormgmt.uninstall.UninstallUtilityError encountered while getting the connector and release name: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.iam.connectormgmt.uninstall.UninstallUtility.verifyConnectorInstalled(UninstallUtility.java:751)
    at oracle.iam.connectormgmt.uninstall.UninstallUtility.executeDirectDeletion(UninstallUtility.java:317)
    at oracle.iam.connectormgmt.uninstall.ConnectorUninstall.doConnectorDeletion(ConnectorUninstall.java:371)
    at oracle.iam.connectormgmt.uninstall.ConnectorUninstall.main(ConnectorUninstall.java:83)



    How can I solve this problem? What is the name of the table that stores the data of connectors?

    Published by: 946412 on July 13, 2012 03:21

    DBUserName = system: hope this is not a user of the IOM

    Provide the IOM DB user name ie: DEV_OIM instead of system

    due to bad username, the above error persist. you will find table CIH under IOM scheme.

  • 3 EA1 problem in 64-bit environment

    I'm certainly not able to start Data Modeler 3 EA1 on a 64-bit (Windows 7 64-bit, 64-bit Jvm) environment

    I've known (and I've read release notes) that SQL Developer Data Modeler is supported on 64-bit platforms, but datamodeler.bat is simply not present in the last version - any other executable is useless on env 64-bit.

    I tried to build a lot myself, but - damn it - I can't find the main class in oracle.datamodeler.jar: the earlier, oracle.dbtools.crest.swingui.ApplicationView,.
    seems wrong; using oracle.ide.boot.Launcher it's the same.
    I'm a little frustrated ;-)

    Of course, I downloaded the zip without a JRE file

    Any help would be appreciated

    Ciao
    Ivo

    Hi Ivo,

    You can simply create a file beats in \datamodeler\bin that contains the following lines:

    Java - Dide.conf =\datamodeler\bin\datamodeler.conf-Dide.product=oracle.datamodeler - cp \ide\lib\ide-boot.jar oracle.ide.boot.Launcher

    Be sure to replace with your actual data Modeler installation folder.

    Hope that helps,
    Ivaylo

  • in and out

    Hello

    It using this query:

    Select 'XY.6.SHr' double neck
    Union of all the
    Select 'XY.61.SWB' double neck
    order by 1

    I got:
    Col
    ---
    XY.61.SWB
    XY.6.SHr

    If "XY.61.SWB" is less then 'XY.6.SHr '.

    But the use of this:
    Select case when 'XY.61.SWB' & lt; 'XY.6.SHr' do pass 'true' or 'false' end of the double

    I got:
    Col
    ---
    fake

    so "XY.61.SWB" is not less then 'XY.6.SHr '.

    Why values are treated differently by using between operator and less then operator?

    Concerning

    I don't see the same results on my test system. Can provide you an actual release?

    SQL> SELECT * FROM V$VERSION;
    
    BANNER
    ----------------------------------------------------------------
    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 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    
    SQL> select * from nls_session_parameters WHERE parameter IN ('NLS_SORT','NLS_COMP');
    
    PARAMETER                      VALUE
    ------------------------------ ----------------------------------------
    NLS_SORT                       BINARY
    NLS_COMP                       BINARY
    
    SQL> select 'XY.6.SHr' col from dual
      2  union all
      3  select 'XY.61.SWB' col from dual
      4  order by 1
      5  /
    
    COL
    ---------
    XY.6.SHr
    XY.61.SWB
    
    SQL> select case when 'XY.61.SWB' < 'XY.6.SHr' then 'true' else 'false' end col from dual
      2  /
    
    COL
    -----
    false
    

Maybe you are looking for