At what point is a user record created in the WWSEC_PERSON$ table?

Hello -
We are using OID for our SSO into the Oracle Portal. When we sync AD -> OID, when I query the Portal WWSEC_PERSON$ table and the new users are not present. I have to go into the Portal Administration page, query one of the users and set a default group. After this action they will have a record in the WWSEC_PERSON$ table.
The reason Im asking is we are trying to automate the default group assignment using the wwsec_api.set_defaultgroup api, but because these users are missing from the WWSEC_PERSON$ table, they obviously cannot be assigned a group.
Is there a way to force new users into the portal DB table? Has anyone else automated this type of assignment?
Thanks
Brian

I've found that ODS.DS_ATTRSTORE comes in very handy to query OID data using SQL. There are multiple attribute records for each entry. The attribute 'uid' contains the user name and 'createtimestamp' contains the timestamp for when the user was created in OID after being synched from AD. The attribute 'orcldefaultprofilegroup' stores the default portal group for the user too.

Similar Messages

  • Cannot remove a record created by the system

    dear experts, i m facing error  " Cannot remove a record created by the system]" while deleting tax group.
    regards
    awais

    That is system functionality in SP01, there is an input & an output code that you now cannot delete

  • When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    This is done if there are domain users with the same name. For example, if there is a domain user named 'test' who has logged in on the server, he will get the profile 'test'. If you then create a local user named 'test', the profile 'test' already exists
    and the computer will create the profile 'computername.test'

  • When a single-page form expands to more than one page, can you reference the new individual "pages" that have been created by the expanding table?

    Don't think this is possible but would love to be wrong.
    Bullet Points:
    1) In my demo form (simple hierarchy: form1.page1.table1.row1), 8 occurrences  (instance "0" through instance "7") of the repeating row1 can be visible
         before it causes a page break and adds another "page".  No issues there.
    2) I'm thinking about trying to control the end-users navigation abilities to only on-screen "previous page" and "next page" buttons.
         (So no scrolling from page to page; keep them where we want them.) Only way I can see making this work is if the form is designed
         and coded to only allow one page to be visible at a time --- nesting things correctly in a parent object then hide all necessary subforms
         and only make the appropriate subform visible.
    3) But when working with tables,  when occurrence 9 gets added (aka instance 8), it triggers an on screen "Page 2" to be added.
         End user can now scroll between Page 1 and Page 2. 
    4) Once Page 2 has been added, is there a way to reference Page 1 (as we see it on screen) and set it to be hidden?
    5) Is what we are seeing on screen as "Page 1" and "Page 2"  actually this.resolveNode("page1[0]") and this.resolveNode("page1[1]") ?
         Tried messing around with referencing it this way but didn't seem to work.  Maybe I had a typo but if we never set the subform named "page1"
         to allow multiple instances, I'm guessing it's not referenced this way.
    Any thoughts would be great.  Thanks so much to this community.
    Brian

    If you're looking at learning a bit more about database design (looking at your description of what you've done in creating a separate table for each category of item sold sounds like you're approaching it as though it was a flat-file rather than a relational database), there's a few books that I could direct you to:
    Beginning Database Design (ISBN 978-1590597699)
    Database Design for Mere Mortals (ISBN 978-0201694710)
    Databases Demystified (ISBN 978-0072253641)
    Absolute Beginner's Guide to Databases (ISBN 978-0789725691)
    I've also got an older book that's always sitting by my desk called Dreamweaver MX Databases (ISBN 978-0782141481), which I still reference regularly - chapter 3 on coding practices and chapter 5 on database design provide very good overviews of the subject.
    There's also a Database Development for Dummies, but I'm not a huge fan of the series where they're tackling technical subjects.
    Without knowing the data you're modeling, it's quite difficult to make generalisations, but I'd probably be looking at a single table called 'Product' (which contains all the product records), and which had in it a boolean for 'new item' and for 'on sale' (you could then use SQL to filter out new and/or sale items when you create your recordset). I'd then have a look up table called 'Categories' which held the values 'necklace', 'handbag', 'belt', and 'purse' which the Product table could then reference to identify.
    Breaking your data down into a logical structure like this is called 'normalisation' (see http://en.wikipedia.org/wiki/Database_normalization) - although it's a bit technical. There's a simpler practical explanation of a similar query to yours at TechRepublic (http://articles.techrepublic.com.com/5100-10878_11-5288500.html), which uses MS Access, but don't worry about that as it's teaching a concept which is applicable no matter what the database server.

  • Donot find user id 50001 in the HSP_USERS table

    Hi All,
    I am using EPM 11.1.1.1.0 and want to import a planning application. In one of the threads i read that you need to keep a backup of SID from HSP_USERS table in the schema where the USER)iD = 50001.
    But i donot have a record in the HSP_USERS table with that user id (50001).
    Can anybody please explain why i do not have it...
    Thanks in advance...
    Alicia

    Hi,
    Sometimes you don't have to update any records in the HSP_USERS table, if the migration is between planning applications that use the same shared services then you don't need too.
    Also if you created the planning application with the default admin account as this doesn't change between environments.
    If you do need to change it, change the record where the role = 3, make sure it is the same username between environments as well.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • I am new to OWC , installed all the required software's and trying to install OWC sites in weblogic server and in the middle of the installation it is creating all the required tables and throwing below exception

    [2013-06-12 21:52:15,554 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=xceleditor&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=63&PASSWORD=<user password>&
    [2013-06-12 21:52:15,566 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=xceladmin&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=127&PASSWORD=<user password>&
    [2013-06-12 21:52:15,578 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=xcelpublish&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=63&PASSWORD=<user password>&
    [2013-06-12 21:52:15,590 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=Visitor&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=63&PASSWORD=<user password>&
    [2013-06-12 21:52:15,602 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=VisitorAdmin&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=127&PASSWORD=<user password>&
    [2013-06-12 21:52:15,614 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=RemoteClient&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=127&PASSWORD=<user password>&
    [2013-06-12 21:52:15,627 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=WSUser&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=1&PASSWORD=<user password>&
    [2013-06-12 21:52:15,639 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=WSEditor&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=63&PASSWORD=<user password>&
    [2013-06-12 21:52:15,652 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/AddACL?name=WSAdmin&command=addacl&COMMANDNAME=READURL&USERNAME=ContentServer&permission=127&PASSWORD=<user password>&
    [2013-06-12 21:52:15,663 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.EventManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'CSEvents'
    [2013-06-12 21:52:15,664 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xml] Installation Error in Basic/Install: errno -22 from EVENTMANAGER.INSTALL: Error: com.openmarket.xcelerate.commands.EventManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'CSEvents'
    [2013-06-12 21:52:15,666 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURL successful ReadURL for element OpenMarket/Xcelerate/Installation/Basic/Install?editacl=xceleditor&adminacl=xceladmin&COMMANDNAME=READURL&upgrade-log=C:/owcSites/oracle/webcenter/sites/logs/sites.log&USERNAME=ContentServer&upgradefrom=0.0.0.0.0&PASSWORD=<user password>&
    [2013-06-12 21:52:15,681 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.ObjectPublishManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'ObjectPublish'
    [2013-06-12 21:52:15,682 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.DistributionListDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'DistributionList'
    [2013-06-12 21:52:15,682 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.ApprovedAssetsDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'ApprovedAssets'
    [2013-06-12 21:52:15,683 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.AssetExportTargetManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetExportData'
    [2013-06-12 21:52:15,684 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.AssetDefaultTemplateManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetDefaultTemplate'
    [2013-06-12 21:52:15,684 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.AssetPublishListDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetPublishList'
    [2013-06-12 21:52:15,685 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.framework] error: errno -22 on attempt to create table
    [2013-06-12 21:52:15,686 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.SessionTableDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'PubSession'
    [2013-06-12 21:52:15,687 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.PubTargetManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'PubTarget'
    [2013-06-12 21:52:15,688 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.framework] error: errno -22 on attempt to create table
    [2013-06-12 21:52:15,698 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xcelerate] Error: com.openmarket.xcelerate.commands.EmbeddedReferenceTableDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'EmbeddedReference'
    [2013-06-12 21:52:15,699 IST] [INFO ] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.xml] Xcelerate Installation Error in Publish/Install: errno -22 from APPROVEDASSETS.INSTALL: Error: com.openmarket.xcelerate.commands.ApprovedAssetsDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'ApprovedAssets' errno -22 from ASSETTARGETMANAGER.INSTALL: Error: com.openmarket.xcelerate.commands.AssetExportTargetManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetExportData' errno -22 from ASSETTEMPLATEMANAGER.INSTALL: Error: com.openmarket.xcelerate.commands.AssetDefaultTemplateManagerDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetDefaultTemplate' errno -22 from ASSETPUBLISHLIST.INSTALL: Error: com.openmarket.xcelerate.commands.AssetPublishListDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetPublishList' errno -22 from DELIVERYTYPE.INSTALL: Error: com.openmarket.xcelerate.commands.AssetPublishListDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'AssetPublishList' errno -22 from SESSIONMANAGER.INSTALL: Error: com.openmarket.xcelerate.commands.SessionTableDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'PubSession' errno -22 from PUBTARGETMANAGER.INSTALL errno -22 from PUBCONTEXT.INSTALL errno -22 from EMBEDDEDREFERENCETABLE.INSTALL: Error: com.openmarket.xcelerate.commands.EmbeddedReferenceTableDispatcher: Install: com.openmarket.basic.interfaces.AssetException: Error: errno=-22 on call to catalog manager for table 'EmbeddedReference'
    [2013-06-12 21:52:15,699 IST] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.install] READURLProblem in CallElement. Error number=-22
    Can some one help me in identifying the issue.

    Hello,
    errno -22 means " Table already exists."
    This could occur if:
    - The install had failed before during the 2nd stage (i.e. some tables were created previously) and you did not drop the schema before re-install.
    - The database user you are using has access to more than 1 WCS schemas and thought the tables exist already.
    Suggestions:
    1. Make sure the db user is set up as per the Configuring Supporting Software document ( http://docs.oracle.com/cd/E29495_01/doc.1111/webcenter_sites_11gr1_bp1_configuring_supporting_software.pdf )
    2. If the second stage of the install fails, you must drop the database tables, undeploy the WebCenter Sites application, delete the WebCenter Sites file structure, and re-install WebCenter Sites. ( http://docs.oracle.com/cd/E29495_01/doc.1111/webcenter_sites_11gr1_bp1_install_on_weblogic.pdf )
    Regards,
    Yu-Chun

  • Issue with records displaying in the advanced table in popup window oaf

    Dear All,
    I have a requirement as below.
    I have a popup search page in that i am displaying the searched data in advanced table, but the issue is all the rows not displaying in the popup window because of poup window size, even i am not able to view the "Next" button in the table to proceed next records, can someone suggest me how to display the "NEXT" button in the table so the i can view all the records in the table.
    or is it feasible to implement "SCROLLBAR" in the advanced table in popup window so that i can scroll vertically and horizontally to view records.
    Thanks

    Actually i have made a mistake, in my advanced table table property palllet i have mentioned maximum rows fetched 20 but in my page i was displaying 10 records only so thats why the navigation button not displaying,
    Thnaks

  • Forms builder- only displays records created in the form builder?

    Hi there. I am new to Oracle and forms builder. I just have a query. I have created a form and when I run the form, it doesnt display the data out of my database. I can add a new record using the form and it will add it to my database:
    >
    STUDENTI FIRSTNAME LASTNAME GENDER DOB
    ADDRESS SUBURB PHONE
    20737785 Lock McIntyre Male 28-DEC-88
    384 Waterfall Gully Rosebud 0359811618
    20784939 Tim Carley F 20-FEB-89
    20 Armstrong Rd McCrae 0359811310
    20837785 LAchlan McIntyre M 28-DEC-09
    Hello Hell 5981131803
    >
    But it will only display the records that I have added using the form. Example, the first two records above were already in the database. I couldnt view them ith the form, but then I added the bottom record and I could only view that record in the form, but not the others.
    Any ideas why? I think I just dont know how to use the forms builder properly. Many thanks

    Forms starts with an empty screen(no records), only when you execute a query, the records are retrieved from the database.
    This can be done by executing the "execute_query" command.
    This can be done by pushing the button in the toolbaar, choosing the menu item, hitting the function key.
    But it can also be done programmatically in forms code(in a trigger).
    I hope this helps...

  • At what point in an application do you load the properties?

    should it be in a servlet?

    It wouldn't occur to me to use a servlet to initialize a Java application. A web application, yes. But nowadays I wouldn't use a servlet to initialize properties in a web application. I would use a ServletContextListener.

  • Bad file is not created during the external table creation.

    Hello Experts,
    I have created a script for external table in Oracle 10g DB. Everything is working fine except it does not create the bad file, But it creates the log file. I Cann't figure out what is the issue. Because my shell scripts is failing and the entire program is failing. I am attaching the table creation script and the shell script where it is refering and the error. Kindly let me know if something is missing. Thanks in advance
    Table Creation Scripts:_-------------------------------
    create table RGIS_TCA_DATA_EXT
    guid VARCHAR2(250),
    badge VARCHAR2(250),
    scheduled_store_id VARCHAR2(250),
    parent_event_id VARCHAR2(250),
    event_id VARCHAR2(250),
    organization_number VARCHAR2(250),
    customer_number VARCHAR2(250),
    store_number VARCHAR2(250),
    inventory_date VARCHAR2(250),
    full_name VARCHAR2(250),
    punch_type VARCHAR2(250),
    punch_start_date_time VARCHAR2(250),
    punch_end_date_time VARCHAR2(250),
    event_meet_site_id VARCHAR2(250),
    vehicle_number VARCHAR2(250),
    vehicle_description VARCHAR2(250),
    vehicle_type VARCHAR2(250),
    is_owner VARCHAR2(250),
    driver_passenger VARCHAR2(250),
    mileage VARCHAR2(250),
    adder_code VARCHAR2(250),
    bonus_qualifier_code VARCHAR2(250),
    store_accuracy VARCHAR2(250),
    store_length VARCHAR2(250),
    badge_input_type VARCHAR2(250),
    source VARCHAR2(250),
    created_by VARCHAR2(250),
    created_date_time VARCHAR2(250),
    updated_by VARCHAR2(250),
    updated_date_time VARCHAR2(250),
    approver_badge_id VARCHAR2(250),
    approver_name VARCHAR2(250),
    orig_guid VARCHAR2(250),
    edit_type VARCHAR2(250)
    organization external
    type ORACLE_LOADER
    default directory ETIME_LOAD_DIR
    access parameters
    RECORDS DELIMITED BY NEWLINE
    BADFILE ETIME_LOAD_DIR:'tstlms.bad'
    LOGFILE ETIME_LOAD_DIR:'tstlms.log'
    READSIZE 1048576
    FIELDS TERMINATED BY '|'
    MISSING FIELD VALUES ARE NULL(
    GUID
    ,BADGE
    ,SCHEDULED_STORE_ID
    ,PARENT_EVENT_ID
    ,EVENT_ID
    ,ORGANIZATION_NUMBER
    ,CUSTOMER_NUMBER
    ,STORE_NUMBER
    ,INVENTORY_DATE char date_format date mask "YYYYMMDD HH24:MI:SS"
    ,FULL_NAME
    ,PUNCH_TYPE
    ,PUNCH_START_DATE_TIME char date_format date mask "YYYYMMDD HH24:MI:SS"
    ,PUNCH_END_DATE_TIME char date_format date mask "YYYYMMDD HH24:MI:SS"
    ,EVENT_MEET_SITE_ID
    ,VEHICLE_NUMBER
    ,VEHICLE_DESCRIPTION
    ,VEHICLE_TYPE
    ,IS_OWNER
    ,DRIVER_PASSENGER
    ,MILEAGE
    ,ADDER_CODE
    ,BONUS_QUALIFIER_CODE
    ,STORE_ACCURACY
    ,STORE_LENGTH
    ,BADGE_INPUT_TYPE
    ,SOURCE
    ,CREATED_BY
    ,CREATED_DATE_TIME char date_format date mask "YYYYMMDD HH24:MI:SS"
    ,UPDATED_BY
    ,UPDATED_DATE_TIME char date_format date mask "YYYYMMDD HH24:MI:SS"
    ,APPROVER_BADGE_ID
    ,APPROVER_NAME
    ,ORIG_GUID
    ,EDIT_TYPE
    location (ETIME_LOAD_DIR:'tstlms.dat')
    reject limit UNLIMITED;
    _***Shell Script*:*----------------_*
    version=1.0
    umask 000
    DATE=`date +%Y%m%d%H%M%S`
    TIME=`date +"%H%M%S"`
    SOURCE=`hostname`
    fcp_login=`echo $1|awk '{print $3}'|sed 's/"//g'|awk -F= '{print $2}'`
    fcp_reqid=`echo $1|awk '{print $2}'|sed 's/"//g'|awk -F= '{print $2}'`
    TXT1_PATH=/home/ac1/oracle/in/tsdata
    TXT2_PATH=/home/ac2/oracle/in/tsdata
    ARCH1_PATH=/home/ac1/oracle/in/tsdata
    ARCH2_PATH=/home/ac2/oracle/in/tsdata
    DEST_PATH=/home/custom/sched/in
    PROGLOG=/home/custom/sched/logs/rgis_tca_to_tlms_create.sh.log
    PROGNAME=`basename $0`
    PROGPATH=/home/custom/sched/scripts
    cd $TXT2_PATH
    FILELIST2="`ls -lrt tstlmsedits*.dat |awk '{print $9}'`"
    NO_OF_FILES2="`ls -lrt tstlmsedits*.dat |awk '{print $9}'|wc -l`"
    $DEST_PATH/tstlmsedits.dat for i in $FILELIST2
    do
    cat $i >> $DEST_PATH/tstlmsedits.dat
    printf "\n" >> $DEST_PATH/tstlmsedits.dat
    mv $i $i.$DATE
    #mv $i $TXT2_PATH/test/.
    mv $i.$DATE $TXT2_PATH/test/.
    done
    if test $NO_OF_FILES2 -eq 0
    then
    echo " no tstlmsedits.dat file exists " >> $PROGLOG
    else
    echo "created dat file tstlmsedits.dat at $DATE" >> $PROGLOG
    echo "-------------------------------------------" >> $PROGLOG
    fi
    NO_OF_FILES1="`ls -lrt tstlms*.dat |awk '{print $9}'|wc -l`"
    FILELIST1="`ls -lrt tstlms*.dat |awk '{print $9}'`"
    $DEST_PATH/tstlms.datfor i in $FILELIST1
    do
    cat $i >> $DEST_PATH/tstlms.dat
    printf "\n" >> $DEST_PATH/tstlms.dat
    mv $i $i.$DATE
    # mv $i $TXT2_PATH/test/.
    mv $i.$DATE $TXT2_PATH/test/.
    done
    if test $NO_OF_FILES1 -eq 0
    then
    echo " no tstlms.dat file exists " >> $PROGLOG
    else
    echo "created dat file tstlms.dat at $DATE" >> $PROGLOG
    fi
    cd $TXT1_PATH
    FILELIST3="`ls -lrt tstlmsedits*.dat |awk '{print $9}'`"
    NO_OF_FILES3="`ls -lrt tstlmsedits*.dat |awk '{print $9}'|wc -l`"
    $DEST_PATH/tstlmsedits.datfor i in $FILELIST3
    do
    cat $i >> $DEST_PATH/tstlmsedits.dat
    printf "\n" >> $DEST_PATH/tstlmsedits.dat
    mv $i $i.$DATE
    #mv $i $TXT1_PATH/test/.
    mv $i.$DATE $TXT1_PATH/test/.
    done
    if test $NO_OF_FILES3 -eq 0
    then
    echo " no tstlmsedits.dat file exists " >> $PROGLOG
    else
    echo "created dat file tstlmsedits.dat at $DATE" >> $PROGLOG
    echo "-------------------------------------------" >> $PROGLOG
    fi
    NO_OF_FILES4="`ls -lrt tstlms*.dat |awk '{print $9}'|wc -l`"
    FILELIST4="`ls -lrt tstlms*.dat |awk '{print $9}'`"
    $DEST_PATH/tstlms.datfor i in $FILELIST4
    do
    cat $i >> $DEST_PATH/tstlms.dat
    printf "\n" >> $DEST_PATH/tstlms.dat
    mv $i $i.$DATE
    # mv $i $TXT1_PATH/test/.
    mv $i.$DATE $TXT1_PATH/test/.
    done
    if test $NO_OF_FILES4 -eq 0
    then
    echo " no tstlms.dat file exists " >> $PROGLOG
    else
    echo "created dat file tstlms.dat at $DATE" >> $PROGLOG
    fi
    #connecting to oracle to generate bad files
    sqlplus -s $fcp_login<<EOF
    select count(*) from rgis_tca_data_ext;
    select count(*) from rgis_tca_data_history_ext;
    exit;
    EOF
    #counting the records in files
    tot_rec_in_tstlms=`wc -l $DEST_PATH/tstlms.dat | awk ' { print $1 } '`
    tot_rec_in_tstlmsedits=`wc -l $DEST_PATH/tstlmsedits.dat | awk ' { print $1 } '`
    tot_rec_in_tstlms_bad=`wc -l $DEST_PATH/tstlms.bad | awk ' { print $1 } '`
    tot_rec_in_tstlmsedits_bad=`wc -l $DEST_PATH/tstlmsedits.bad | awk ' { print $1 } '`
    #updating log table
    echo "pl/sql block started"
    sqlplus -s $fcp_login<<EOF
    define tot_rec_in_tstlms     = '$tot_rec_in_tstlms';
    define tot_rec_in_tstlmsedits     = '$tot_rec_in_tstlmsedits';
    define tot_rec_in_tstlms_bad     = '$tot_rec_in_tstlms_bad';
    define tot_rec_in_tstlmsedits_bad='$tot_rec_in_tstlmsedits_bad';
    define fcp_reqid ='$fcp_reqid';
    declare
    l_tstlms_file_id number := null;
    l_tstlmsedits_file_id number := null;
    l_tot_rec_in_tstlms number := 0;
    l_tot_rec_in_tstlmsedits number := 0;
    l_tot_rec_in_tstlms_bad number := 0;
    l_tot_rec_in_tstlmsedits_bad number := 0;
    l_request_id fnd_concurrent_requests.request_id%type;
    l_start_date fnd_concurrent_requests.actual_start_date%type;
    l_end_date fnd_concurrent_requests.actual_completion_date%type;
    l_conc_prog_name fnd_concurrent_programs.concurrent_program_name%type;
    l_requested_by fnd_concurrent_requests.requested_by%type;
    l_requested_date fnd_concurrent_requests.request_date%type;
    begin
    --getting concurrent request details
    begin
    SELECT fcp.concurrent_program_name,
    fcr.request_id,
    fcr.actual_start_date,
    fcr.actual_completion_date,
    fcr.requested_by,
    fcr.request_date
    INTO l_conc_prog_name,
    l_request_id,
    l_start_date,
    l_end_date,
    l_requested_by,
    l_requested_date
    FROM fnd_concurrent_requests fcr, fnd_concurrent_programs fcp
    WHERE fcp.concurrent_program_id = fcr.concurrent_program_id
    AND fcr.request_id = &fcp_reqid; --fnd_global.conc_request_id();
    exception
    when no_data_found then
    fnd_file.put_line(fnd_file.log, 'Error:RGIS_TCA_TO_TLMS_CREATE.sh');
    fnd_file.put_line(fnd_file.log, 'No data found for request_id');
    fnd_file.put_line(fnd_file.log, sqlerrm);
    raise_application_error(-20001,
    'Error occured when executing RGIS_TCA_TO_TLMS_CREATE.sh ' ||
    sqlerrm);
    when others then
    fnd_file.put_line(fnd_file.log, 'Error:RGIS_TCA_TO_TLMS_CREATE.sh');
    fnd_file.put_line(fnd_file.log,
    'Error occured when retrieving request_id request_id');
    fnd_file.put_line(fnd_file.log, sqlerrm);
    raise_application_error(-20001,
    'Error occured when executing RGIS_TCA_TO_TLMS_CREATE.sh ' ||
    sqlerrm);
    end;
    --calling ins_or_upd_tca_process_log to update log table for tstlms.dat file
    begin
    rgis_tca_to_tlms_process.ins_or_upd_tca_process_log
                   (l_tstlms_file_id,
                   'tstlms.dat',
                   l_conc_prog_name,
                   l_request_id,
                   l_start_date,
                   l_end_date,
                   &tot_rec_in_tstlms,
                   &tot_rec_in_tstlms_bad,
                   null,
                   null,               
                   null,
                   null,
                   null,
                   null,
                   null,
                   l_requested_by,
                   l_requested_date,
                   null,
                   null,
                   null,
                   null,
                   null);
    exception
    when others then
    fnd_file.put_line(fnd_file.log, 'Error:RGIS_TCA_TO_TLMS_CREATE.sh');
    fnd_file.put_line(fnd_file.log,
    'Error occured when executing rgis_tca_to_tlms_process.ins_or_upd_tca_process_log for tstlms file');
    fnd_file.put_line(fnd_file.log, sqlerrm);
    end;
    --calling ins_or_upd_tca_process_log to update log table for tstlmsedits.dat file
    begin
    rgis_tca_to_tlms_process.ins_or_upd_tca_process_log
                   (l_tstlmsedits_file_id,
                   'tstlmsedits.dat',
                   l_conc_prog_name,
                   l_request_id,
                   l_start_date,
                   l_end_date,
                   &tot_rec_in_tstlmsedits,
                   &tot_rec_in_tstlmsedits_bad,
                   null,
                   null,               
                   null,
                   null,
                   null,
                   null,
                   null,
                   l_requested_by,
                   l_requested_date,
                   null,
                   null,
                   null,
                   null,
                   null);
    exception
    when others then
    fnd_file.put_line(fnd_file.log, 'Error:RGIS_TCA_TO_TLMS_CREATE.sh');
    fnd_file.put_line(fnd_file.log,
    'Error occured when executing rgis_tca_to_tlms_process.ins_or_upd_tca_process_log for tstlmsedits file');
    fnd_file.put_line(fnd_file.log, sqlerrm);
    end;
    end;
    exit;
    EOF
    echo "rgis_tca_to_tlms_process.sql started"
    sqlplus -s $fcp_login @$SCHED_TOP/sql/rgis_tca_to_tlms_process.sql $fcp_reqid
    exit;
    echo "rgis_tca_to_tlms_process.sql ended"
    _**Error:*----------------------------------*_
    RGIS Scheduling: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    TCATLMS module: TCA To TLMS Import Process
    Current system time is 18-AUG-2011 06:13:27
    COUNT(*)
         16
    COUNT(*)
         25
    wc: cannot open /home/custom/sched/in/tstlms.bad
    wc: cannot open /home/custom/sched/in/tstlmsedits.bad
    pl/sql block started
    old 33:     AND fcr.request_id = &fcp_reqid; --fnd_global.conc_request_id();
    new 33:     AND fcr.request_id = 18661823; --fnd_global.conc_request_id();
    old 63:                &tot_rec_in_tstlms,
    new 63:                16,
    old 64:                &tot_rec_in_tstlms_bad,
    new 64:                ,
    old 97:                &tot_rec_in_tstlmsedits,
    new 97:                25,
    old 98:                &tot_rec_in_tstlmsedits_bad,
    new 98:                ,
    ERROR at line 64:
    ORA-06550: line 64, column 4:
    PLS-00103: Encountered the symbol "," when expecting one of the following:
    ( - + case mod new not null others <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively-q
    ORA-06550: line 98, column 4:
    PLS-00103: Encountered the symbol "," when expecting one of the following:
    ( - + case mod new not null others <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql st
    rgis_tca_to_tlms_process.sql started
    old 12: and concurrent_request_id = '&1';
    new 12: and concurrent_request_id = '18661823';
    old 18: and concurrent_request_id = '&1';
    new 18: and concurrent_request_id = '18661823';
    old 22: rgis_tca_to_tlms_process.run_tca_data(l_tstlms_file_id,&1);
    new 22: rgis_tca_to_tlms_process.run_tca_data(l_tstlms_file_id,18661823);
    old 33: rgis_tca_to_tlms_process.run_tca_data_history(l_tstlmsedits_file_id,&1);
    new 33: rgis_tca_to_tlms_process.run_tca_data_history(l_tstlmsedits_file_id,18661823);
    old 44: rgis_tca_to_tlms_process.send_tca_email('TCATLMS',&1);
    new 44: rgis_tca_to_tlms_process.send_tca_email('TCATLMS',18661823);
    declare
    ERROR at line 1:
    ORA-20001: Error occured when executing RGIS_TCA_TO_TLMS_PROCESS.sql ORA-01403:
    no data found
    ORA-06512: at line 59
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 18661823      
    Number of copies : 0      
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 18-AUG-2011 06:13:29
    ---------------------------------------------------------------------------

    Hi,
    Check the status of the batch in SM35 transaction.
    if the batch is locked by mistake or any other error, now you can release it and aslo you can process again.
    To Release -Shift+F4.
    Also you can analyse the job status through F2 button.
    Bye

  • Selecting specific records out of the same table with PICS

    Post Author: nambi
    CA Forum: Formula
    I have a Database table in which we have information for our paint codes,
    This database when accessed through our will display the types of tests we do for the products we manufacture, we manually enter in these results through the software.  When I open up this same table in access I noticed that each test we do is displayed as new entry under the same product, therefore I have several entries for the same product code, and since we have several tests for each I am unable to specifically pull out the data I need.
    For example I need to create a data sheet for our customers displaying the bake time for these all our products the Product code (formkey) is listed multiple times but all I need is to record the Bake (TargetAlphaValue) time. Out of this table I will also need to report on the Gloss. If I use the record selection I am only able to display one type of test although I will need to specify other types as well.  This is the area I have the problem with,
    I have shown in a jpg what I am looking for, would anyone here know how to pull out only the TargetAlphaValue and associate it to the bake and formkey?  Then do the same with the Gloss test and pull up the TargetAlphaValue for that it would be of great help

    Can you be more precise , please :
    - which table stores the people identities ? (I call this one Identity)
    - which table gives the class where the student works in (I cal l this one Claa_attendees)
    - which table gives the instructor of a class (I call this one Class)
    If your issue is that you have one table which stores Itendities , and you need to display Student identity and Instructor Identity, you have to call this table twice in your query , using table aliases . I mean :
    Select Stud_iden.name, Instr_iden.name
    From Identity Stud_iden, Identity Instr_iden, Class_attendees, Class
    Where Class.clas_id = class_attendees.class_id
    and class.instructor_id = Instr_iden.people_id
    and class_attendees.student_id = Stud_iden.people_id
    Is this what you need to do ?

  • Multiple display formats for several records coming from the same table

    Hello all,
    I want to create one Crystal Reports XI report to display several records coming from one table, but I need different display format for different records from that one table.
    There is a field RecordType and based on that value, the record will be displayed differently on the report page.
    Can I have several sections in the report and to define different SQL query in each of them?
    Example of the report I need to see on paper:
    ================================================
    Summary of 216 vehicles:  (the value 216 comes from record with RecordType=1)
    Vehicle Category    Number of Vehicles
              A                   5          (this value 5 comes from record with RecordType=2)
              B                   7          (this value 7 comes from record with RecordType=3)
              D                   4          (this value 4 comes from record with RecordType=4)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these five values come from records with RecordType=5)
    Category B vehicle numbers:
    9876   8876   9987   4321   6754   5215   4543    (these values come from records with RecordType=6)
    Category D vehicle numbers:
    2343   2344    2348   2377    (these values come from records with RecordType=8)
    ==============================================================
    Text is fixed (labels), number values are coming from table records.
    What would be a good way to do this in Crystal Reports XI ? In Cognos ReportNet, I would just create several Queries (SQL sentences) and place their outputs on a page, one after the other.
    I use Crystal Reports XI R2 and Oracle 10g database through and ODBC connection.
    Thank you,
    Milan

    Obaid and Debi,
    Thank you for your replies.
    I can create multiple sections in the report, but I don't know how to split the 20 records that I get back from the database to be displayed in 5 different report sections.
    How can I define different SQL statement for each of 5 report sections?
    How can I use cross-tabs to display what I need? Can I define SQL statement for each cross-tab and then I could place only RecordType=1 records into cross-tab-1 and all RecordType=2 records into cross-tab-2 ?
    In Cognos ReportNet, I defined 2 Queries (SQL statements) and I just placed them in the report one below the other. Query_1 returns 1 record where RecordType value =1. Query_2 returns 5 records where RecordType value =2 and etc. So each record "section" displays record in the way I want it.
    ================================
    Summary of 216 vehicles:  (the value 216 comes from record where RecordType=1)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these values come from records where RecordType=2)
    ================================
    How can I do that in Crystal Reports XI ?
    How can I run several SQL statements from one report?
    Thank you,
    Milan

  • Row not creating in the results table of search page,plz help

    hi,
    i had created searchpage, and after giving the criteria ,after press the go button, its giving exception the row is not created
    oracle.apps.fnd.framework.OAException: oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for DeptEO.
    can anyone help regarding this.

    Please post the full error stack.
    This message is not enough to diagnose the problem.
    --Prasanna                                                                                                                                                                                                       

  • Row not creating in the results table of search page,

    hi,
    i had created searchpage, and after giving the criteria ,after press the go button, its giving exception the row is not created
    oracle.apps.fnd.framework.OAException: oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for DeptEO.
    can anyone help regarding this..

    Try the OA Framework Forum

  • How to insert past record after updating the master table in history table through store PROC

    Master Table
    Party Status
    A Active
    B Inactive
    C Active
    D Inactive
    Duplicate Table
    Party Status
    A Active
    B Active
    C Active
    D Inactive
    Updated Master Table
    Party Status
    A Active
    B Active
    C Active
    D Inactive
    Party History Table
    B Inactive
    I have two table one master and another duplicate I need to update master table based on duplicate table insert the record which updated into Party history table as shown above. need help to write store proc.

    Check MERGE syntax in BOL (example D). There should be a sample with output, e.g.
    insert into PartyHistory (Party, [Status])
    select Party, [Status] FROM
    (MERGE Master M using Duplicate D on M.[Party]=D.[Party]AND M.[Status]<>D.[Status]
    WHEN MATCHED THEN UPDATE
    SET [Status] = D.[Status]
    OUTPUT Deleted.[Party], Deleted.[Status], $Action) AS Changes (Party, [Status], Action) WHERE Action = 'UPDATE'
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

Maybe you are looking for

  • Can 't connect old iMac to new Mac Mini

    I'm trying to connect an older iMac (450MHz, cherry red OS 9.2.1) to a new Mac Mini (OS X 10.4.3). I don't have a Frewire cable, so I'm trying to do it with an ethernet router. I seem to be doing it incorrectly. File Sharing is turned on for the iMac

  • Limewire

    Hi everyone...I am a new iPod user. I dowloaded the "Hotel California" video from Limewire and convert it for the iPod. When I play the video on my iPod, there is no sound. Can someone help me with this issue? Thanks in advance...

  • Using Apex collection, IR report never refreshes

    I am using IR report with Apex collections. It never gets refreshed. I've to manually refresh it using browser refresh. I do have a boarderless region template for the IR report. How can I fix it?

  • Keyboard Shortcut - Get semi-colon to jump to end of line

    In the NetBeans IDE I can type "myCommand(myVariable;)" and NetBeans will automatically change it to "myCommand(myVariable);". Can that be set up in JDeveloper? If not, is there another way to place the semi-colon at the end of the line without using

  • Changing the owner/user name in the title bar

    I was just given my ipod nano by my niece. However, her name still scrolls across the title bar on the screen. I would like to change it to my name. I can not find ANY information on how to do that anywhere. Can someone give my (detailed) instruction