Create DB Link dynamically in JAVA - Problems

Hi everyone,
I am trying to dynamically create a database link in the database. Now what I am asking is this. When I type in SQLPlus create database link 123... and execute it, the database link is created just fine.
BUT when I pass the exact same statement through a java class (ie stm.execute("create database link 123...");) I get errors....
Does anyone have any idea why this occurs?
Thank you all.
Koz Paz

GaneshJay wrote:
I 'm executing a sql query from Java. The sql has data from two different database and i'm using db link for the same.
But my java program connects to only one database. So my program is throwing "connection description ofrm remote database not found" error.
How can i change my java program which will solve this issue?Doesn't sound like an application error, it's probably a database error. What happens if you execute the query in the database through a tool? (Query browser?)

Similar Messages

  • Help:create tree node dynamically from java code...

    hi there...can anyone give me solution how to create or add tree node dynamically from java code???
    currently i am using tree node to handle my menu...i try to create tree and add treenode dynamically from .java page, but it failed...can anyone give solution how to create tree ui from java code, so i can create a dynamic menu...thanz before...

    Hi:
    Just put the statements you would normally put on a sqlplus command line in jdbc statements and execute them?
    http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html#0.1_executeUpdate
    MJG

  • How to Create Symbolic link using pure Java code?

    Hi,
    I would appreciate if someone can tell me how to create symbolic link using JAVA API. I have looked into many forums but couldn't get a better answer.

    Java is likely not the tool to use here, as symlinks are not present in Windows while "pure" Java attempts to be platform independent. You could use Runtime.exec to execute the ln -s command
    http://forum.java.sun.com/thread.jspa?threadID=664475&messageID=3892685
    Good Luck
    Lee

  • How create the link in webdynpro java???

    Hi Experts,
    i want to create a webdynpro application where i need to create a link, on action that link it should call the another url.
      On action URL i will call the KM documents..
    Can anyone tell me how to achieve that ??
    Regards,
    Mahesh

                                In below code using display image from KM via WDJ      String path="";   IPrivateKmUploadCompView.IKM_uploadElement ele=null;  ele=wdContext.nodeKM_upload().createAndAddKM_uploadElement(); path="/documents/KMimage.jpg"; IUser sapUser = wdClientUser.getSAPUser(); com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser); //Getting the Resource......... IResourceContext resourseContext = new ResourceContext(ep5User); IResourceFactory resourseFactory = ResourceFactory.getInstance(); RID pathRIDimg = RID.getRID(path); com.sapportals.wcm.repository.IResource resourceimg = resourseFactory.getResource(pathRIDimg, resourseContext); //Reading the image file...... BufferedInputStream bufIn = new BufferedInputStream(resourceimg.getContent().getInputStream()); IWDCachedWebResource cachedWebResource = null;   cachedWebResource = WDWebResource.getWebResource(bufIn, WDWebResourceType.JPG_IMAGE);  cachedWebResource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()) ;                                                  //sent image to resource context    wdContext.currentContextElement().setDownload(cachedWebResource);

  • Urgent, creating xml files dynamically, request dispatcher problem

    hi all,
    Problem 1:
    There is a problem we are facing, while request dispatching.
    The files CBECBC.XML & CBECBC_Envelop.XML,
    both xml files. These files are created on request from the user, dynamically, and displayed on the browser,
    by including them in a jsp page.
    Here we face a problem when they are to be included into the jsp page.
    The error is the following :
    //////// Error ////////
    Could not find request dispatcher for the url CBECBC.xml
    Could not find request dispatcher for the url CBECBC_Envelop.xml
    The created files are stored in the "d:\pstudio35\desks\bank\BankWeb\".
    We are using " <jsp:include page="...."/> " (dynamic jsp include tag), to include the xml files.
    Problem 2:
    And could you just let me know how to include a xml file in a jsp file,
    so that the xml file is displayed in the exact format of xml(with the tags).
    I am using Pramati Studio 3.5
    Its urgent!!!
    Regards,
    Deepa Datar

    problem 2:
    either translate all < en > into < and > or display the XML in a textarea

  • How to create pdf files dynamically using Java

    I am new to java world. I got a task of generating dynamic pdf files using Java. I have tried with some third party APIs for generating pdf. But most of them are not so feasable. I am looking for source code for one such APIs so that I can build my custom requirements over it.
    Thanks

    I am new to java world. I got a task of generating
    dynamic pdf files using Java. I have tried with some
    third party APIs for generating pdf. But most of
    them are not so feasable. Which ones? What was wrong with them?
    I am looking for source
    code for one such APIs so that I can build my custom
    requirements over it.What are your exact requirement?

  • How to create a database dynamically

    I am trying to create mysql database dynamically through java. Also please help me how to execute *.sql file in java.

    dheerajsea123 wrote:
    I am trying to create mysql database dynamically through java. Also please help me how to execute *.sql file in java.If possible it depends on the database and driver.
    If possible the exact methodology varies by database (driver shouldn't matter.)
    Normally it is not considered a good practice for traditional server applications.

  • Create multiple elements dynamically at one time

    Hi,
    I need to create some links dynamically.
    Below is my code... but I need to know instead of multiple steps.. is there a way to create dynamic elements together using one method itself....  or once i create the elements can i embed all these links together in the view?
      lr_lta = cl_wd_link_to_action=>new_link_to_action(
      id = 'LNK_CREATE'
      on_action = 'ON_NAVIGATE'
      text = 'Create'
      view = lr_view ).
      cl_wd_matrix_data=>new_matrix_data( element = lr_lta ).
      lr_container->add_child( the_child = lr_lta ).
      lr_lta = cl_wd_link_to_action=>new_link_to_action(
      id = 'LNK_HISTORY'
      on_action = 'ON_NAVIGATE'
      text = 'Hitory'
      view = lr_view ).
      cl_wd_matrix_data=>new_matrix_data( element = lr_lta ).
      lr_container->add_child( the_child = lr_lta ).
    Any help will be grateful.
    Regards and Thanks
    Tenzin

    Hi,
    This is a sample code for doing it using loop.
    I just refined the code to make it most amenable to your requirement.
    The code gives two different links at the same time with two different actions.
    method WDDOMODIFYVIEW .
    IF first_time eq abap_true.
    data lr_ref type ref to cl_wd_link_to_action.
    data lr_cont_ref type ref to cl_wd_uielement_container.
    data lr_layo_ref type ref to cl_wd_flow_data.
    data lv_times type i value 2.
    data lv_count type i value 1.
    lr_cont_ref ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    do lv_times times. "decide how many times you want the link
    case lv_count.     "decide what link to action with what action should be defined
    when 1.
    CALL METHOD cl_wd_link_to_action=>new_link_to_action
       EXPORTING
         enabled             = ABAP_TRUE
         image_first         = ABAP_TRUE
         on_action           = 'First_Action'
         text                = 'First Link' "to display 'Gangtok' when clicked
       receiving
         control             = lr_ref
       CALL METHOD cl_wd_flow_data=>new_flow_data
       EXPORTING
         element                = lr_ref
       receiving
         control                = lr_layo_ref
    CALL METHOD lr_cont_ref->add_child
      EXPORTING
        index     = 1   "this is to set link to action in first place
        the_child = lr_ref
    When 2.
      CALL METHOD cl_wd_link_to_action=>new_link_to_action
       EXPORTING
         enabled             = ABAP_TRUE
         image_first         = ABAP_TRUE
         on_action           = 'Second_Action' "to display 'Kolkata' when clicked
         text                = 'Second Link'
       receiving
         control             = lr_ref
      CALL METHOD cl_wd_flow_data=>new_flow_data
       EXPORTING
         element                = lr_ref
       receiving
         control                = lr_layo_ref
    CALL METHOD lr_cont_ref->add_child
      EXPORTING
        index     = 2   "this is to set the link to action in 2nd place
        the_child = lr_ref
    endcase.
    lv_count = lv_count + 1.
    enddo.
    endif.
    endmethod.
    Regards,
    Prosenjit.
    Edited by: prosenjit chaudhuri on Feb 16, 2009 12:48 PM

  • Problem Creating Partner Link for Adapter Integrating with Tuxedo using JCA

    Hi All,
    This is the first time that I am working on integration tools. I will explain in brief the problem.
    There will be a legacy system (Tuxedo) running which connect to legacy database for requests. I am able to connect to that legacy system using Attunity Studio for getting the response back. Which is working fine.
    Now I want that to integrate with BPEL PM 10.1.2 using JCA. For this I followed this URL (http://www.oracle.com/technology/tech/java/oc4j/904/how_to/oc4j-jca-tux/onjava-jca.html). What happens here is, a simple servlet invokes a Session Bean that interacts the Attunity Server using the JCA. For that I am using oc4j container of BPEL PM 10.1.2. I could able to work it fine.
    For working with BPEL, I have created synchronous process, when try to create Partner link using Adapter service from WSIL browser, it is not coming in.
    Am I missed any important configuration at BPEL PM end.
    For doing this a followed the "tutorial 2" @ http://www.oracle.com/technology/products/integration/adapters/dev_support.html
    In exact way, above provided tutorial 2 PDF, I failed at step "Configuring a BPEL Service to invoke the above Adapter Service" on page 11.
    Your help is highly appreciated
    Thanks
    Venkata

    Something to note. I tried adding the same BPEL services as partner links to a new application and new project on two other developer's workstations, and the creation of the partner links were successful.

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
    Plz response with details.

    1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
    2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
    3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
    4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
    5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
    6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
    You don't need Javascript for this.

  • Create a Table Dynamically in WEB Dynpro Java with diferent type of column

    Hi everyone, I have a question if is possible to create a table dynamically in Web Dynpro Java?, depending of the RFC consults create the rows dynamically, ,this table must have diferent type of columns, for example link column (when the user click this link execute an action and show a adobe interactive form in another view), image column (show an image depending of the information)
    Thank you everyone
    Atte Israel

    Hello,Israel.
    Yes , it is possible through dynamic programming in wdModify of the View.
    You can do this ,for example, using cell variants.
    IWDTable tab = (IWDTable) view.getElement("TABLE_NAME");               
    IWDTableStandardCell cellV= (IWDTableStandardCell) view.createElement(IWDTableStandardCell.class,"TableStandardCell"+i); 
    cellV.setVariantKey("NotEditableVariant");
    cellV.setCellDesign((WDTableCellDesign)wdContext.nodeTableDaysTitle().currentTableDaysTitleElement().getAttributeValue("CellDesign"+i));
    IWDTextView textViewi= (IWDTextView) view.createElement(IWDTextView.class,"TextView"+i);  // -- here you control the type of the object that is displayed in the cell
    textViewi.bindText(dayAttrib);
    cellV.setEditor(textViewi);          
    tabColumn.addCellVariant(cellV);
    tab.addGroupedColumn(tabColumn,tab.numberOfGroupedColumns());     
    Using this code you can control even specific cells in the table and not only columns.
    Hope this helps you,
    Constantine

  • How to create Links dynamically

    Hello,
    I've tried for several days to create links dynamically, and
    I can't get it work out.
    Here is what my application do : in a
    viewstack, I create dynamically some
    canvas as children of the viewstack. The number of canvas
    depend on the number of items in an arraycollection.
    Creation of a canvas (included in a "for" loop):
    Objet_Courant = Curseur.current;
    var canvas_cible:Canvas = new Canvas;
    canvas_cible.id = "CN_"+i;
    canvas_cible.width = 315;
    canvas_cible.height = 160;
    ViewStack_cible.addChild(canvas_cible);
    I inject content in each canvas the same way :
    var newModele:Text = new Text;
    newModele.id = "MODELE_"+i;
    newModele.text = (Objet_Courant.modele) as String;
    canvas_cible.addChild(newModele);
    And now my question (at last) : I would like to create links,
    for example on the text item. The URL of the link would come from
    the arraycollection, as the other datas I use.
    Does anyone have a clue for this ?
    Thanks in advance.

    I still get stuck with this problem, even several months
    after... I had the same problem with creating links on images, when
    I dynamically create Tilelists with images as an ItemRenderer. How
    can we associate links with the images ?
    Any kind of help would be great :)

  • Has CS6 fixed the PPro with AE dynamic links slow to render problems?

    I've got PPro with AE dynamic links slow to render problems similar to those discussed in this thread:
    http://forums.adobe.com/thread/904652?start=0&tstart=0
    As I understand it (and I could well be wrong), if I render a PPro project that has AE projects dynamically linked in (anything from simple lower thirds to color grading), during rendering the AE bits run as a service, which limits the AE bits to a single CPU and effectively stops simultaneous rendering of multiple frames. This is why I can get very high render times (essentially no parallel processing), and why messing with the number of CPUs allowed for simultaneous frame rendering, or the amount of RAM said CPUs can access, has little to no effect on total render time.
    Supposedly as some point AE was going to be changed such that it used Media Encoder to do it's rendering (same as PPro does), thus speeding up rendering for any PPro project that has AE parts dynamically linked in.
    Has this been done in CS6? If not, any idea when that's scheduled to happen?

    Jim Simon wrote:
    (I do wish Adobe staff would keep this distinction mind when creating their videos.  When I saw one about the new background rendering in PP, I was interested, only to learn that he was actually talking about background exporting, a feature PP has had since AME was introduced in CS4.)
    The distinction is not so distinct, and this is an industry issue, not really Adobe. After Effects has a render queue, which is used for exporting, but you can also export. Lightwave has this, even Avid. The terms do have their own distinct meanings, but of course context is usually required. So usually "rendering previews" or "rendering final output" serve as context-sensitive uses of the term.
    Terminology abuse is widespread, even people with video cameras now call themselves "filmmakers" and people who produce films never shown nor intended for a cinema call themselves "cinematographers." ENG video producers are called "photogs" and news photographers are called "photojournalists."
    Transcoding, encoding, rendering, exporting....mish-mashed unfortunately, but thankfully most people can figure out what's meant.
    Back to the OP - After Effects can be used with Adobe Media Encoder, it's just not the default. You can import any composition into AME from AE and render your encoded export.
    As for background rendering....I remember when Pinnacle Liquid was the first to the table with that feature back in 2004 or 2005. It seemed awesome, except that you needed a ton of spare hard drive space and lots of processing to keep the background rendering going...effecitvely your processor was in use 100% of the time. When you weren't scrubbing or playing back, Liquid was rendering previews. Of course, you could use those previews during export but you rarely would have wanted to do so, since it was better quality to reference the original data when compositing the layers and effects to output to a web file, for instance. Then  you had to keep cleaning up the preview cache.
    I rarely render previews at all, and when I do it's just a small segment at a time, just to get a full look at the final composite. Mercury Playback is usually more than capable of playing back most of my edits the rest of the time.

  • When you create a link to a web page in numbers and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem? Thank yo

    When you create a link to a web page in numbers "Mavericks" and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text (with Cmd-K) in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem?
    Thank you.

    Hi again Raja!
    I did as you recommended and installed HTTPWatch and below is the outcome of that program. It is the exact string with the only exception of obfuscated servernames and portnumbers. The last part that begins with "sap_ep_baseurl=" makes me suspicious, is that part really correct? It looks like it's lacking things.
    Best regards
    Benny
    http://<server:port>/sap/bc/bsp/sap/Z_PURCHASE_REQ/process.htm?
    sap-syscmd=nocookie&sap-client=200&sap-language=sv&style_sheet=
    http%3A%2F%2F<server>%3A<port>%2Firj%2Fportalapps%2F
    com.sap.portal.design.portaldesigndata%2Fthemes%2Fportal%2Fsap_tradeshow%2F
    controls%2Fcontrols_ie6.css%3F7.0.10.0.0&sap-cssversion=7.0.10.0.0&sap-tray-type
    =null&sap-tray-padding=null&sap-accessibility=&sap-ep-version=7.00.200611091758&
    sap_ep_version=7.00.200611091758&sap_ep_baseurl=http%3A%2F%2F
    <server>%3A<port>%2Firj%2Fportal&matnr=9780198603641

  • Create a Link using Dynamic Text and Capture Variable

    I am building a dynamic website using Dreamweaver CS5 with Coldfusion 9
    Currently I have created a dynamic text table. The table is created by querying the Invoice table and displays the all the customers Invoices. The columns Include Invoice #, Date, Amount Paid, BalanceRemaining, Due Date. So basically lists all the invoices I have applied to the unique customer. It is pulled up using a session variable I created from the login page.
    My question is this I want to make the "Invoice #" linked so when you click on it it goes to a new page and performs a new query which retrieves infro related to that specific invoice such as Services Rendered, Service Description, Date, Price, Total. I was able to create a link to the Invoice # but I am stuck trying to figure out how to capture the Unique Invoice # and apply it to the new query. Is this possible if so how?
    Thanks for your help!

    Now keep in mind I am speaking strictly from a web and SQL standpoint as I have no experience with coldfusion.
    If you are able to create the link to the Invoice, I am perceiving this as the following:
    Invoice
    Links to
    #123
    page.php?invoice=123
    #345
    page.php?invoice=345
    If your page is setup like that then you already have the data stored in the browser request with the GET method.  In PHP the equivalent is the $_GET array.  I am assuming ColdFusion has a similar array to work with forms.  Then on your following page you obviously need to check that the visitor came from the prior page with the proper permissions to ensure that someone doesn't get the address page.php?invoice=### and just guesses through and views all invoices if they are not supposed to.  Then your query would look something like the following:
    SELECT * FROM invoice_table WHERE invoice_number = $_GET['invoice']
    Remember this in written in PHP so yours should be a similar equivalent.
    Hopefully this helps a little to get you going in the right direction.

Maybe you are looking for

  • Facebook hang when adobe flash player is enabled, and doesnt when its not

    Just as title, running facebook will cause firefox completely to hang, untill a "unresponsive script" message pops out after couple of minutes, disabling the flash player will fix this issue but yet again would disable using flash completely (its a b

  • Parallel accounting  cost objects in non leading ledger

    Hi Gurus, I have implemented parallel accounting and have my leading ledger in INR and the non leading leading ledger in USD. also i have the FI profit center and segment activated and for segmental reporting i am using the same. I now need to report

  • Error in Archiving Printlist

    Dear All, We are archiving a printlist in SAP. While doing so, the request ended with error in CFBC queue. The CARA queue executed successfully by archiving link. The error that is popping up in CFBC queue is: "Error in version number increment for v

  • Generate document as single object ?

    Hi All, We have an .net application(Visual studio 2003)  and we do generate documents using Crystal reports 10 and we  apply security on the documents using third party tool,Now we have a requirement from the client,they want to the see the documents

  • Error with calendar

    Hi, experienced an error in the calendar. . Its actually off 1 day starting from 10 Nov till 31 Dec before its back to normal. Did u experience it as well?