Rel 12 - How to create a new APPS connection from custom Java/Shell Script

Hi,
I am looking to write a custom JAVA code / Shell Script which needs to establish a connection to execute a PL/SQL API on Rel 12 db.
The challenge is to be able to connect without specifying APPS Password anywhere (just like Oracle Apps does it).
This Shell script / Java code is not called from within Apps hence I need to establish a brand new connection along the lines of using ....
WebAppsContext ctx = new WebAppsContext(System.getProperty("JTFDBCFILE"));
OracleConnection conn = (OracleConnection)ctx.getJDBCConnection();
like in 11i world or possibly using APPLSYSPUB username
I need help / direction in how to do this in a Rel 12 env. I understnad there are lot of architecture changes and if someone can provide a generic code snipped it will be great.
I need to keep this as closely aligned to Rel 12 coding and security standards as possible.
This code will reside in $XXCUSTOM_TOP/bin file or under XXCUSTOM.oracle.apps.java....... if its Java.
Pls help.
Cheers
-- VK.

Hi,
Have you looked at Oracle produced dbc file and its contents? That might help. It is under $FND_TOP/secure. It uses GWYUID=APPLSYSPUB/PUB. I am hoping that the APPS_JDBC_URL would help too.
Regards,

Similar Messages

  • How to create automatic creation of BP from customer and vendor master data

    Hi gurus,
    can any one tell how to create automatic creation of BP from customer and vendor master data.
    Please give me the steps.
    Thanks
    Sasikanth.

    HI,
    Goto SPRO\ Cross application components \ Master data synchronization \ Synchronization control.
    Assign account groups of customer and vendors to respective BP grouping. This setting is enough to create BP in background while creating customer / vendor. But the fields groups are very much important, ensure mandatory fields should be sync.
    rgds,
    Srini

  • How to create a new app using existing Dev & Dist certificates

    Okay, I have already created one app that has been approved by Apple. Now we're ready to create a second app and we're trying to create the .p12 certificates using the existing Apple Dev and Dist Certificates. For some reason we can not get the .p12 certificates for the new app to link up with the existing Apple Dev and Dist certificates. I don't understand what I'm missing. Any help would be appreciated. Thanks!

    You must have 2 folders with the following :
    Dev:
    aps developer identify.CER
    CertificateSigningRequest.certSigningReq
    Certificats.P12 (already created for your previous app)
    Certificats Push Dev.P12
    Mobile Provision
    Distri
    aps prodution identify.CER
    CertificateSigningRequest.certSigningReq
    Certificats distri.P12 (already created for your previous app)
    Certificats Push Prod/distri.P12
    Mobile Provision
    Try, you will know quickly if you havent do it well

  • How to create a new iMovie library from existing events?

    I have had the misfortune of loosing my Mac with all of the data on it BUT fortunately I have kept a copy of all my iMovie events backed up so I've managed to save them.
    Now I have a new iMac and 500Gb+ in the "iMovie Events" folder. I've copied this folder into my Movies folder (in "home" dir) BUT since I didn't also back up the .imovielibrary file I need to create a new library for all these events. The problem I'm facing at the moment is that I'm not sure how to "import" these events in a way that will maintain all/most of the information. I've tried doing the File > Import Media and pointing it to the Movies folder BUT it looked like it was going to import all the files into a single Event, so I chickened out.
    Any suggestions/recommendations? Am I doomed to importing the events one at a time?
    Thanks!

    Looks like I may have found a solution.
    As mentioned above I've copied the "iMovie Events" folder to the place iMovie expects it to be at. And now I've selected: File > Update Projects and Events
    It has recognized that there were a bunch of events that it needed to "process" and has started reading them all.
    It looks like all the events are back, I've not done extensive checking yet, but so far it looks very promising.

  • How to create a new thread in display function -----Java OpenGL

    use netbean 6.1 to do this work.
    public void display(GLAutoDrawable drawable) {
          GL  gl = drawable.getGL();
          //I want to create a new thread here to draw an object
          Thread dt = new Thread(new DrawThread(gl,2),"Thread0");    //create a thread,DrawThread is a class I define
          //but it failed when compiling
          //are there any other ways or how to improve my method?
    }I want to do like this because I do not like to block the main thread when it is drawing an object

    Well, the autocode in your application is maintained by your autocode module, any attempt at changing it will result in having it reset back to the original autocode--that's one of the gotcha's about using autocode.
    Since it looks like you may not have the skills to do what you are asking and relying on the autocoder, you should probably start here:
    [Java Tutorial|http://java.sun.com/docs/books/tutorial/]
    And stay there until you are comfortable coding for yourself.

  • How to create COGSuFF0Cwhen goods was returned from customer

    Hi,
        goods which deliveried from nonvaluated sales order stock was returned from customer and reduce revenue and AR.
    so, we need do following process:
        create returned sales order〉delivery note and goods receipted-〉billing
      the goods can be receipted in sales order stock ,and can be invoiced .
    but how to create COGS  with returened sales order for nonvaluated sales order stock?

    Hi
      T-CODE :MR21 ,It is used to change the standard price ,we are in the environment that make to order with nonvaluated sales order stock ,so donu2019t need do standard coting .
    I konw : With a nonvaluated sales order stock, inventory changes are not reflected in Financial Accounting. The sales order stock is settled to Financial Accounting only after results analysis and settlement of the calculated values (results analysis data) .
      for normal process , if billing was created ,then do results analysis and settlement of the calculated values ,COGS will be post in financial accounting
      for returen prcoess :
      1. created returen sales order and referenced origin billing document.
       2. create delivery note and goods receipted in sales order stock which was deliveried to customer stock
      3. create billing document and revenue posted in financial accounting
       4. do results analysis with returen sales order ,the system show error message:               W     KJ     816     No object was selected
         when used the orign sales order to do results analysis ,but without any change to save !
    how to post COGS in financial accounting ,when goods was return from cusromer in the environment that make to order with nonvaluated sales order stock ?

  • How to create a new database instance from an existing one?

    Hi, I basically want to create a snapshot of a production
    instance (version 8.1.7) for querying purposes. Would anyone
    tell me the steps involved? What I did as follows:
    1. Copy all data files to a new location
    2. Modify init.ora accordingly. I believe there is no separate
    control file for this version.
    But when I startup the instance, got this error:
    ORA-01103: database name 'TRITON' in controlfile is not 'HERCULE'
    What is missing? Do these data files contains links to the
    previous instance name?
    Thanks for any help.

    Hi All,
    I need some help in recreating new database instance.
    Here are the steps I have done so far:
    1. Created a database with name 'LASTDB' using DBCA
    2. Connected to RMAN.
    3. RMAN>SET DBID=******; (of the source database)
    4. Connect to target. RMAN>connect target SYS/*****;
    5. Executed controlfile restore on RMAN.
         RMAN>Run{
    Allocate channel D1 Type DISK;
              Set controlfile autobackup format for device type DISK to
    ‘\\<ip_address>\Backup\Prod\%F’;
    Restore controlfile from autobackup;
    6. RMAN> ALTER DATABASE MOUNT;
    Now got an error saying ORA-01103: database name ‘PRODDB' in control file is not ‘LASTDB’
    I tried using NID to change the database name but it's throwing an error that database is not mounted.
    I have browsed a lot and found that I need to recreate a control file of the production database using ALTER DATABASE BACKUP CONTROLFILE TO TRACE and should edit the trace file. But it also says to shutdown the source database which is production database and I cannot try that.
    Also I have tried adding a line to init.ora like lock_space_name = LASTDB. Also tried replacing everything from LASTDB to PRODDB but that didn't work either.
    I have been trying to find a solution to this. Please bear with me as I'm a beginner and please let me know how I can fix the error.
    I am running oracle 10.1.0.2.0 enterprise edition on windows 2000.
    Thanks for your patience,
    KG

  • How to create a new record using a custom method?

    Hi I want to create Jdev 11 a new record using the contructor following in the footsteps of http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CACCIJAG/vtTopicFile.adfdevguide%7Cweb_adv~htm/.
    My problem is the following.
    Messages for this page are listed below.
    Error
    JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    Error
    java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    Error
    Object: null is not a known entity type.
    Someone can help me?
    Cristian.

    Hello Frank, this tutorial make it and was successful but, what I am trying to do is add a new record in the table departments. The steps undertaken are suguientes
    drag over page the contructor department, with a submit, this will drag on the button, the method presistencia, set binding action with "$ (bindings.Departments.result)", and when running the application gives me the error
    Nov 2, 2007 10:06:22 PM oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: ADFc: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    I need to know if what I am doing is right, because I followed the steps of the tutorials and it is not functioning the insertion of a new record.
    Thank you thank you.

  • How to create a new creation page from view page itself

    Dear all
    i have view page in that i need to click on new button i need to call new creation page
    here i am writing the code in view page co in pfr
    HashMap h1 = new HashMap();
    h1.put("pmode", "Continue");
    if (pageContext.getParameter("New") != null)
    pageContext.setForceForwardURL("OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationcreationPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, h1, false, OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    in creation co i am calling this method
    if (pmode!=null)
    System.out.println("Entered into this block.....");
    am.xxcreatequotation(orgid);//blank record for this
    System.out.println("After this statement......");
    cancel1.setRendered(false);
    System.out.println("After this statement......11");
    in view page when i am clicking the new button the page is calling editable mode
    i dont think so y it is happening like this.
    Regards
    Sreekanth

    Dear Gaurav
    i wrote this code
    public void xxcreatequotation(int orgid)
    xxcrmOpportunityTVOImpl vo = getxxcrmOpportunityTVO();
    OADBTransaction tr = getOADBTransaction();
    int x = 0;
    String lv_current_flag = "Y";
    String lv_opt_flag = "N";
    if (vo.getFetchedRowCount() == 0)
    vo.setMaxFetchSize(0);
    Row createqtn = vo.createRow();
    vo.insertRow(createqtn);
    createqtn.setNewRowState(Row.STATUS_INITIALIZED);
    Number qtnid = tr.getSequenceValue("xxcrm_opportunity_seq");
    System.out.println("The opportunity id is....." + qtnid);
    vo.getCurrentRow().setAttribute("OppoOpportunityid", qtnid);
    vo.getCurrentRow().setAttribute("OrgId", orgid);
    vo.getCurrentRow().setAttribute("OppoRevisionId", x);
    vo.getCurrentRow().setAttribute("OppoCurrentFlag", lv_current_flag);
    vo.getCurrentRow().setAttribute("OppoIsoptional", lv_opt_flag);
    vo.getCurrentRow().setAttribute("OppoBaseOpportunityid", qtnid);
    Regards
    Sreekanth

  • How to create Service Requests(SR's) from customer/user mails.

    Looking for "how to enable the feature of creating Service Requests (SR's) in tele Service Module based on the information
    in E-mail coming from Customers/users" in 11.5.10.2 E-Business Suite.
    Any reference notes/pointers is appreciated.

    I think you should have to setup email center..
    Just go through the implementation guide...to get some idea about it..
    Thanks

  • TS2756 How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )

    How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
    i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
    the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
    the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
    but not the usb iPhone i used to have.
    And when i try to add a new one i dont get a USB option.
    can some one help me please??
    this is how it looks (after the bluetooth PAN i used to have USB iPhone option)

    The question would be more appropriate in the Mac forums as it is not really related to the iPhone.

  • How to create a new connection from SAPGUI to Test drive?

    Hi,
    I have installed Sap Netweaver Test drive on a linux virtual machine (windows host). The installation was successful and I was able to start the instance (application server and the database), yet I don't know how to create a new connection from my SAPGUI client (7.20) to this server. The static IP address of the server is 192.168.1.160.
    I entered the following values for my new connection entry
    Description: SAP Netweaver
    Application server: 192.168.1.160
    Instance number: 01
    System ID: DB2
    SAProuter: /H/192.168.1.160/S/3201/H/
    But it does not work. Any idea about the values needed  for creating a new entry?
    Thanks in advance,
    Dariyoosh

    >
    Dibya R Das wrote:
    > Why are you entering a router string? Can't you reach a box directly from your machine?
    >
    > Doesn't a ping to that host & a "telnet <host/ip address> 3201" work from your machine to the SAP System.
    >
    > Remove the router string you wont need if the above works.
    >
    > - Regards, Dibya
    Hello there,
    Thank you very much for your answer which solved my problem. In fact there was no need of providing router string.
    Kind Regards,
    Dariyoosh

  • How to create iTune or App Store without credit card for my existing Apple ID without create new Apple ID or email?

    I got 2 Apple ID and the first time to I use it to iTune or App Store, a box will pop out and telling me this:
    "This Apple ID has not yet been used with the i Tunes Store. Please review your account information."
    Then, I click on the button, "Review". Bla bla... but ended up, I must provide a credit card in order to complete it.
    I do not have credit card, so I search 'How to create iTune or App Store without credit card', same link and same tactic only valid for New Apple ID.
    So, it seem no other option to create iTune or App Store without credit card for existing Apple ID, right?

    The same thing is happening to me!

  • How to create a new folder in my iPad hotmail?

    How toI create a new folder in my iPad hotmail?

    You can only do it with IMAP email account; to do this:
    1. Go to your email account in the Mail app and look at the window where your Inbox, Trash folder and Sent folder are.
    2. Tap the Edit button
    3. Tap Add Mailbox (bottom)
    Note: If there is no Edit button, your email account is not a IMAP account

  • How to create a new line in label in Xcode

    How to create a new line in label. for example I have two buttons & one label. when i press first button, l want to change the label text to "Hello World". then when I press the second button, on the same label I need to display"Good Bye" on the next line in xcode 5?
    I want to display the lablel like below:
    Hello World
    Good Bye

    I am using Xcode to develop an app for iOS.
    I tried using multi-line label & belwo is my code.
    - (IBAction)change:(UIButton *)sender {
        self.Screen.text = @"\nHello World";
    - (IBAction)newChange:(UIButton *)sender {
          self.Screen.text = @"\nGood bye";
    everytime when i pressed the button, it replacing the whold lable text instead of adding the second line.

Maybe you are looking for

  • HP Officejet 100 Mobile Printer - L411a

    Hi, i just bought the printer HP Officejet 100 Mobile Printer - L411a I need it to be able to print riget from me Iphone 5 with supported app to print now i'm going to use it on my van on work. yesterday i try to connect it via bluetooth bet it not s

  • FILENAME

    Hi am using the simple program below.But am getting the output as FILE NOT READ.I hav a file with the same name in the 'C' drive.Please help. REPORT ZBDC_3A. DATA : FNAME(30) VALUE 'C:\ZFCHR1.TXT'. DATA : STR(255). OPEN DATASET FNAME FOR INPUT IN TEX

  • Remove X-Smtp-Server from Header in Mail

    I'm having an issue with Mail (7.3) leaking my personal email address in outgoing email. Background: I have a grandfathered free google apps account and use [email protected] to handle my personal email. Under this same user in google apps, I als

  • Page information in the database

    In which portal30 table can I find the displayname of a page? I can find the pagename and other information about the page, but not the displayname, and thats what I need. Thanks

  • E90 Browser - how do I emulate the Windows right-c...

    Two Download Web Application Questions: Q1: In the E90 internet browser, I need to "right-click" and then "save-as" a download file to a directory. How do I do that? Q2: I cannot download Audible book files, they are linked under a "*.pl" script I th