Jdeveloper-Running SQL Script Problem

Hi
Iam new bee to Jdeveloper.
I have developed sample datbase application in jdeveloper;
Can any one explain me how to excute Sql script??
Thanx in advance
smile

Ziqew,
you configure a database connection in JDeveloper where you specify the database connect information in the non-tnsnames form of server, port and SID.
Running a scritp against SWL*Plus, you select the SQL script in JDeveloper and choose SQL*PLus from teh context menu. I am doing this all the time and don't get problems.
Maybe your misunderstanding is that you add TNS names to where database SID is expected
Frank

Similar Messages

  • Run sql script

    Hi,
    run sql script through command line(CMD). IS it possiple.
    Thanks.

    user638559,
    Do I miss something else ? Are you the OP ?
    Nicolas.
    And also, it's a dup thread
    run sql script
    Message was edited by:
    N. Gasparotto

  • Where to running SQL Scripts after install of ODAC for Oracle Client?

    I just installed ODAC for Oracle Client on a windows server, that runs a sql server database, for developers to connect a web app to an Oracle/Unix database. The install states to run SQL scripts located in the $ORACLE_HOME\ASP.NET\SQL directory after the install. I'm not sure where to run them? On the ORACLE DB on the Unix server? If someone could bring me up to speed I would appreciate it. Thanks.

    If I do run the scripts, do you know what user they should be run as? The developer are using ASP.NET for connectivity.
    Why there is no Oracle Expert answer this simple question? ?
    After ODAC 11.1.0.7.20 installation completed, there is a message in the last screen:
    *"Run the SQL script located in c:\app\Administrator\product\11.1.0\client_1\ASP.NET\SQL directory for a new installation or an upgrade of Oracle Providers for ASP.NET"*
    The question is: How to run these 9 SQL scripts ?
    In SQL*Plus, which oracle user should I connect to in order to run these 9 scrips, including:
    InstallAllOracleASPNETProviders.sql
    InstallOracleASPNETCommon.sql
    InstallOracleMembership.sql
    InstallOraclePersonalization.sql
    InstallOracleProfile.sql
    InstallOracleRoles.sql
    InstallOracleSessionState.sql
    InstallOracleSiteMap.sql
    InstallOracleWebEvents.sql

  • Is it Possible to Run SQL Script from Java prog

    Hello
    Is there any API by which we can run SQl Script file ,
    Just by giving database configration parameters and SQL Script file Path ,it will execute that script automatically

    You can excute SQL statemetns throught JDBC, but that doesn't have a facility to read those statements from a file. You'd have to write code to read the file and create and execute statements through JDBC. That should be pretty straightforward though.
    It's conceivable that there's a third party library out there that does it, if you know what to look for.
    If you're not familiar with JDBC, check out http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • Run SQL script in JDeveloper 11g

    HI! I create Offline and Online DB Diagrams for my DB in JDeveloper 11g. Then I sync these diagrams and et SQL script.
    1. Can I run it in JDeveloper or I need to use SQLDeveloper?
    2. And can I alter table with this script, if I had values in alter columns?
    Best regards!

    Debuger,
    1. Yes, you can run it in JDev; JDev has a lot of the SQL Developer functionality built in.
    2. Thats really a question of what the DB supports. For example, altering a column to make it bigger - fine; altering a nullable column to make it not null when there are null values - will fail.
    John

  • Run SQL Script from a a Batch File

    I'm trying to schedulling a SQL Script by Windows Scheduler:
    START 
    "C:\Program Files\Microsoft SQL Server\100\DTS\Binn\dtexec.exe" /FILE "C:\Users\tstjs\TESTESTESTES.sql" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING EWCDI
    PAUSE
    However, when I run the batch file it giving the error below:
    ...sql" due to error 0xC00CE556 "Invalid at the top level of the document. Line 1, Column 1". This happens when loading a package and the file cannot be opened o r loaded correctly into an XML document. This can be the result of either provid
    ing an incorrect file name to the LoadPackage method or the XML file specified h aving an incorrect format. End Error
    How can I solve that problem?
    Thanks!

    Hi SaQvl,
    As Scott metioned, you shall use sqlcmd to execute a tsql script. You can reference the below link
    Use the sqlcmd Utility
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Clearing sequences, running sql script

    Hi,
    I'm using OWB 10.1.0.4.0 and I use a sequence to create a surrogate key in my tables. For the tabels that are deleted during the proces I want these sequences set to 1 again.
    Is there a possibility to run a sql script in a mapping or in the proces flow (with a drop, create, grant statement for the sequence) ?
    Thanks in advance,
    Arjan

    Thx, I'll try that on monday. If I'm correct I can import a .sql in a custom procedure?
    I'll update the thread on monday.

  • Running sql script from pl/sql

    Is there any standard way to run an external sql script from pl/sql
    I really appreciate any assistance.

    If you want, I did start writing a function reading and executing statements out of sql script with utl_file.
    can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';
    the function could be extended for DDL, session setting, etc...
    Regards
    Laurent

  • How to run sql scripts using batch file for a web dynpro data dictionary

    Hi,
    I want to develop a sql script to be executed on the server alongwith the installation of a product to pre-populate web dynpro data dictionary tables required for the application.
    I further require to make the scripts independent of the database name,so that it can be run at any client environment.
    Your help will be appreciated and rewarded.

    See shoblock's answer
    call sql script from unix
    masterfile.sql:
    @file1 &1
    @file2 &2
    @file3 &3
    @file4 &4
    then just call the master script:
    sqlplus userid/password @masterfile <p1> <p2> <p3> <p4>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Running SQL script at a certain time

    Please suggest in application express what I need to do to run a sql script say 6.00 AM every day

    Hello,
    Take a look at DBMS_SCHEDULER, here's a good link with more information -
    http://www.oracle-base.com/articles/10g/Scheduler10g.php
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Running  sql scripts from different directory

    Hi
    I have sql scripts in different directories as follows:
    D:\myapp\sql
    - load.sql
    - init.sql
    D:\myapp\sql\schema
    -users.sql
    -structure.sql
    D:\myapp\sql\populate\
    - data1.sql
    - data2/sql
    load.sql call all the other scripts as below:
    @init.sql
    @schema\users.sql
    @schema\structure.sql
    @populate\data1.sql
    @populate\data2.sql
    All my scripts run correctly when I run load.sql from D:\myapp\sql on comand prompt.
    I need a way to run this script from a different directory say D:\ or C:\
    I am writing a installer which will execute from a different directory.
    Right now I get a file not found error for scripts within schema an populate folder.
    Please let me know how can I make this work from a different directory.
    Thanks
    kelvin

    Hi peter. i think you cannot run files spread across different locations.
    --the method which u specified always looks to the defined path                                                                                                                                                                                                                                                                                       

  • Run multiples script problem

    if i run mutiples script , it can't not commit , such as
    insert into a
    (a,b)
    values
    (1,2);
    update b
    set col = 1
    where type = a;
    but i run one by one no problem
    what is the problem
    thanks
    Edited by: user11156736 on 2009/6/4 下午 8:15
    Edited by: user11156736 on 2009/6/5 上午 1:32
    Edited by: user11156736 on 2009/6/5 上午 1:33

    user11156736 wrote:
    if i run mutiples script , it can't not commit , such as
    insert into a
    values
    (1,2)You are missing a semicolon here after the insert
    >
    update b
    set col = 1
    where type = a;
    can you cut and paste the screen output which you are running.
    paste the script or code in between two tags.
    SS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Cannot run SQL script on Oracle Database 10g Express Edition

    I'm trying to upload a script, and the file is being uploaded fine, but in the Script Editor window where I'm going to actually run the script, the entire file content is shown on one line and the whole edit area is in red. I'm not being able to run that script. Also if I create a new script from the editor, the edit area is again in red and I'm not able to save it. Please help me understand what's to be done so that I can run my SQL scripts.

    I'd bet the database is down.
    Try a login through sqlplus ("Run SQL Command Line" in the Oracle Express Edition 'Start' menu).
    Do a CONN / AS SYSDBA
    If you get a message about database or memory area not available, try STARTUP.
    If that doesn't work, you are best off in the General Database forum or the Express Edition forum.
    You'll probably get the most expert response in General Database, but the Express Edition forum can be gentler on newbies (as it is more accepted that questioners are not and do not have access to full-time DBAs).

  • Auto run sql script when DB opens

    Is it possible to configure a DB so a given SQL script is run each time the database opens?
    Thanks a lot in advance.

    rafadc wrote:
    Is it possible to configure a DB so a given SQL script is run each time the database opens?
    Thanks a lot in advance.Either include the script in a startup script for the database, dbstart on *nix you'd need to write your own on windows, or else move the code into a startup trigger.
    Niall Litchfield
    http://www.orawin.info/

  • Timer - Run .sql Script automatically

    How do I setup an .sql script setup in SQL Developer to run automatically as a scheduled task?
    thanks

    Hello,
    welcome to the forum.
    SQL Developer is not a tool that can be automated. When you need to execute a script automatically, then you have several options.
    - Execute the script via SQL*PLUS, scheduled from OS
    - Use the db scheduler to execute a procedure
    - Call a OS script from a db job.
    For further information about these options go to {forum:id=193}, {forum:id=144} or {forum:id=75}.
    Regards
    Marcus

Maybe you are looking for

  • Function Module/Bapi to get Customer down payment in F-28/F-29

    Hi All, I need Function Module or Bapi to get the Customer down payment which have been posted in F-29/F-28 transactions. Please do needful. Regards Madhu

  • SQL Query Problem - Please Help

    Post Author: nmellick CA Forum: Data Connectivity and SQL Hello, I am trying to use a query in CR9 to pull the latest date of a DREXAM for each patient.  The patient can have one item or several items.  When I run this query, it only pulls back one r

  • Module pool issue (Urgent Plz Help)

    Hi All, I have a requirement in which when i click on the image in the module pool then i have to navigate to some other screen but 1. how could i know that the user has clicked the image ? 2. What is the use of PF_STATUS? Please help me out i have a

  • Call to ECC table from BI

    I have this routine in a BI transformation routine select single CONTACTNAME INTO RESULT FROM THREIC_CONTACT WHERE CONT_GUID =      source-system-cont-guid. Error : THREIC_CONTACTNAME not recognised Any ideas how to call the table.

  • Get current swf path

    I'm developing an extension use Extension Builder for Photoshop CS5. I have to use an executable file in my extension. In general, if you use the Adobe Extension Manager to install the extension, the extension's swf file will put to USERPATH\AppData\