Oracle Express SQL scripts is displaying in Red not Green

The SQL script display is very hard to read in red. Noramlly it is light Green and easy to read, I belive it is using JAVA to render.

This is a [long standing problem in some browsers/configurations|http://forums.oracle.com/forums/search.jspa?threadID=&q=%22Script+editor%22+AND+RED&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001]. There's nothing you can do about it except switch to a supported browser, or use an alternative tool like [SQL Developer|http://www.oracle.com/technology/products/database/sql_developer/index.html] when working with PL/SQL.

Similar Messages

  • Can i run or test oracle pl sql scripts online?

    Hi Everyone
    Is there any means to test and run oracle pl sql scripts online thru any website?
    Thanks

    ms wrote:
    Hi Everyone
    Is there any means to test and run oracle pl sql scripts online thru any website?
    ThanksWhy do you expect another site to have your tables & data?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • VStudio is crashing while debugging Oracle PL/SQl scripts from VS

    Hi all,
    I am using Visual Studio 2008 and Oracle11g, ODTwithODAC1110620 for debugging Oracle PL/SQL packages from Visual Studio. My solution has several C# projects and a big chunk of Oracle package. I have configured visual studio and able to debug the scrips. But, while debugging the scripts, all of a sudden, solution gets closes automatically and nothing that I can do other than opening the solution and do it again. It seems weird and I could not trace out what went wrong.
    But, I could see few errors in event viewer and below is the description.
    *".NET Runtime version 2.0.50727.3623 - Fatal Execution Engine Error (7A2F8992) (0)"*
    Please suggest me how to resolve the issue and let me know if further information is required.
    My apologies, if this is not the proper area to post this issue and suggest me where I can get help in this regards. Thanks in advance.
    Regards,
    Kumar

    Hi,
    Thanks for the response and below is the information as required.
    Machine details: Microsoft Windows XP Professional Version 2002 Service Pack 3 (Desktop)
    Oracle Version: Oracle 11.1.0.6.0 client, Oracle Data Provider for .NET 10.2.000 and Oracle Developer Tools for Visual Studio 11.1.0620.
    Please let us know your feedback on this.
    Regards,
    Kumar

  • Qosmio F30-117 - Display issues - red and green lines

    Hi there,
    I have a qosmio F30-117 and up to recently, I was delighted with everything about it.
    Then, mid session, the graphics began to deteriorate, which a reboot fixed.
    Then a few days later, it did it again and this time when I rebooted it came up with a corrupted display, lots of aa's all over the place then lines of red and green all over.
    Managed to get in by selecting safe mode with networking and got a desktop although still with the red and green lines all over it.
    Now its gotten worse still, when I boot up the laptop screen itself is blank, its getting something because it isnt totally black like it is when its powered off, but its blank.
    As a check I connected an external monitor and managed to get in again to safe mode with networking, but its still very bad, and still has the red and green lines all over.
    I started to have a look around on the good old www and there are numerous posters and articles with problems, and lots mentioning the red and green lines etc...
    so Im not alone, but no-one seems to know exactly what it is.
    Some have mentioned Toshiba acknowledging this as a problem and doing repairs even if out of warranty.
    So, any ideas, any advice, and does anyone know if Tosh have indeed accepted the problem and offering any help??
    Thanks in advance

    Hi
    I think it's a common problem in the Qosmio F30 models. After long term use, the soldering balls under the GPU chipset start to melt down because of the over heat and the bad soldering quality that was used with the F30 model that cannot resist high temperature. Now you have to replace the motherboard, since the GPU is build within the motherboard.
    However, there is another two solution for this problem and cost less money amount:
    1- do what is called a "heat reflow" for the VGA chipset: to do this you have to take the motherboard out and heat the VGA chipset on the motherboard with a heat gun or you can bake it in the oven for a few minutes at low temp, this will make the soldering balls melt and go back to there right position. However, you need to keep in mind that this solution is temporary and will last maybe for month then you have to do it again and again till you ruin the GPU and then the only solution will be to buy another motherboard. So I don't recommend that you do that at all, but if you don't want to spend a lot of money on a new motherboard this will help you to recover your data, even though there is more easier solution to do the recovery.
    Anyways, you can go to youtube and search the term "VGA heat reflow " to see how people do it.
    2- send your motherboard to a repairing service that can do what is called reballing: what they do is that they will replace the soldering balls under the VGA chipset with new ones that can resist high temp. and this solution is permanent and even in the future you don't have to worry that the same problem will happen again since the new soldering balls can take high temp change. I do recommend this solution even more than buying a motherboard, since the motherboard that you will get will generate the same problem after few years.
    you can find this type of repair service online if you googled the term "VGA reball repair" or you can find it on ebay
    If you decided to replace the motherboard I think you will not be able to find a new one, and in case you found one it will be more expensive than a new laptop, but still you can find used motherboard for your qosmio on ebay or online. so you need to do a search and find out what fits your budget or maybe it's better to buy a new laptop.
    Sorry about your qosmio, and hope that my post will help you!

  • Sql script works in mssql but not in mysql

    The following
    SELECT count(*) FROM itemlist WHERE ID like '%a%' or itemDescription like '%a%'
    works in mssql but i get the error "Table 'xxx.itemlist' doesn't exist"
    in mysql. How can I make this work

    works in mssql but i get the error "Table
    'xxx.itemlist' doesn't exist"
    in mysql. How can I make this workCreate a table called itemlist in xxx's user space or schema or whatever it's called. Or create itemlist somewhere else and use the fully qualified whatever.itemlist to refer to it.

  • How to test a simple PL SQL function from another PL SQL script

    Hi,
    I have created a function. Now i need to test that whether it is returning the correct values or not.
    For that, i have written anothe pl sql script and trying to call this function. Im passing all the IN parameters in that function. I assume here that OUT parameters will provide me the result. Im trying to display the OUT parameter one by one to see my result.
    I'm using toad as sql client here connected with oracle.
    pl sql script:-
    DECLARE
    BEGIN
         DBMS_OUTPUT.PUT_LINE('$$$$$$$ VINOD KUMAR NAIR $$$$$$$');
         FETCH_ORDER_PRODUCT_DATA(320171302, 1006, 6999,
    ODNumber OUT VARCHAR2, Line_Number OUT VARCHAR2,
    ServiceID OUT VARCHAR2, BilltoNumber OUT VARCHAR2,
    AnnualPrice OUT NUMBER, CoverageCode OUT VARCHAR2)
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | ODNumber );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | Line_Number );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | ServiceID );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | BilltoNumber );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | AnnualPrice );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | CoverageCode );
    END;
    Function:-
    Program Name : SPOT_Order_Product_Data_For_CFS.sql
    Description : Function to Validate parameters from CFS
    By : Vinod Kumar
    Date : 08/19/2011
    Modification History
    By When TAR Description
    CREATE OR REPLACE FUNCTION FETCH_ORDER_PRODUCT_DATA(orderNumber IN VARCHAR2, customerNumber IN VARCHAR2,
    productLine IN VARCHAR2, ODNumber OUT VARCHAR2,
    Line_Number OUT VARCHAR2, ServiceID OUT VARCHAR2,
    BilltoNumber OUT VARCHAR2, AnnualPrice OUT NUMBER,
    CoverageCode OUT VARCHAR2)
    RETURN VARCHAR2 IS
    lv_err_msg VARCHAR2(100) := '';
    lv_bucket_id VARCHAR2(14);
    lv_bill_number VARCHAR2(30);
    lv_anual_price NUMBER;
    lv_coverage_code VARCHAR2(8);
    lv_quote_num NUMBER(10) := NULL;
    lv_line_num NUMBER(5) := 0;
    lv_customer_number VARCHAR2(30) := customerNumber;
    lv_product_id VARCHAR2(14) := productLine;
    lv_count_quote NUMBER := 0;
    lv_quote_status VARCHAR2(5);
    lv_quote_version NUMBER(2):=0;
    BEGIN
    IF INSTR(orderNumber, '-') = 0 THEN
    lv_quote_num := orderNumber;
    ELSE
    lv_quote_num := SPT_Delimiter(orderNumber, 1, '-');
    lv_line_num := SPT_Delimiter(orderNumber, 2, '-');
    END IF;
    --Check status of the quote COM, APP
    SELECT COUNT(*) INTO lv_count_quote FROM sot_order_header WHERE ORDER_NUMBER=lv_quote_num
    AND ORDER_STATUS IN ('APP', 'COM') AND CUSTOMER_NUMBER = lv_customer_number;
    IF lv_count_quote = 0 THEN
    lv_err_msg := 'Invalid Order number';
    RETURN lv_err_msg;
    END IF;
    -- Fetch the latest version on SPOT quote
    SELECT MAX(VERSION_NUMBER) INTO lv_quote_version FROM SPT_QUOTE_HEADER WHERE QUOTE_NUMBER = lv_quote_num
    AND CUSTOMER_NUMBER = lv_customer_number;
    -- If quote is valid fetch the data in OUT parameters
    IF lv_line_num = 0 THEN
    BEGIN
    SELECT a.CUSTOMER_BILLTO_NUMBER,
    b.LINE_NUMBER, b.BUCKET_ID,
    b.ANNUAL_REF_RATE_USD, b.COVERAGE_CODE
    INTO lv_bill_number,lv_line_num,lv_bucket_id,lv_anual_price,lv_coverage_code
    FROM SPT_QUOTE_HEADER a, SPT_QUOTE_LINE b
    WHERE a.QUOTE_NUMBER = lv_quote_num
    AND a.CUSTOMER_NUMBER = lv_customer_number
    AND a.VERSION_NUMBER = lv_quote_version
    AND a.QUOTE_NUMBER = b.QUOTE_NUMBER
    AND a.VERSION_NUMBER = b.VERSION_NUMBER
    AND b.PRODUCT_ID = lv_product_id;
    ODNumber := lv_quote_num;
    BilltoNumber := lv_bill_number;
    Line_Number := lv_line_num;
    ServiceID := lv_bucket_id;
    AnnualPrice := lv_anual_price;
    CoverageCode := lv_coverage_code;
    RETURN '';
    EXCEPTION WHEN OTHERS THEN
    lv_err_msg := 'Multiple PIDs existing in the SPOT order, please provide the SPOT order + line number as input data';
    RETURN lv_err_msg;
    END;
    ELSE
    BEGIN
    SELECT a.CUSTOMER_BILLTO_NUMBER,
    b.BUCKET_ID, b.ANNUAL_REF_RATE_USD,
    b.COVERAGE_CODE
    INTO lv_bill_number,lv_bucket_id,lv_anual_price,lv_coverage_code
    FROM SPT_QUOTE_HEADER a, SPT_QUOTE_LINE b
    WHERE a.QUOTE_NUMBER = lv_quote_num
    AND a.CUSTOMER_NUMBER = lv_customer_number
    AND a.VERSION_NUMBER = lv_quote_version
    AND a.QUOTE_NUMBER = b.QUOTE_NUMBER
    AND a.VERSION_NUMBER = b.VERSION_NUMBER
    AND b.PRODUCT_ID = lv_product_id
    AND b.LINE_NUMBER = lv_line_num;
    ODNumber := lv_quote_num;
    BilltoNumber := lv_bill_number;
    Line_Number := lv_line_num;
    ServiceID := lv_bucket_id;
    AnnualPrice := lv_anual_price;
    CoverageCode := lv_coverage_code;
    RETURN '';
    EXCEPTION WHEN OTHERS THEN
              lv_err_msg := 'Multiple SPOT lines exist with same parameter';
              RETURN lv_err_msg;
    END;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    lv_err_msg := '@@@ EXCEPTION THROWN @@@ '|| SUBSTR(SQLERRM,1,120);
    RETURN lv_err_msg ;
    END;
    Don't look at the function, it might have errors but my primary concern is how to test this function. Once I start doing its testing then only i can understand any bugs(if any).
    My pl sql is not so good. Im still learning. I don't understand IN and OUT parameters are.
    I just know that IN parameters r those whick we pass in to the function wen we call it and OUT parameters are those through which we get the result.
    Thanks in advance
    Vinod Kumar Nair

    20100511 wrote:
    I wondered how I could test the output of the function from within TOAD?I usually create the following function in my developer schema:
    create or replace function BoolToChar( b boolean ) return varchar2 is
    begin
      if b then
        return( 'TRUE' );
      else
        return( 'FALSE' );
      end if;
    end;To test a function like yours, the following will do in SQL*Plus/TOAD/etc:
    begin
      DBMS_OUTPUT.put_line(
        BoolToChar( XCCC_PO_APPROVALLIST_S1.does_cpa_exist(1017934)  )
    end;
    I'm probably doing 101 things wrong here, but thought I'd ask anyway and risk being shouted at.Shout at? You reckon? I thought people risked being beaten with a lead pipe, or pelted with beer cans and stale pretzels - which makes being shouted at a really safe and viable alternative. {noformat};-){noformat}

  • How to validate SQL scripts

    Hi,
    How to Validate SQL scripts?
    I am having set of sql files i wish to run one by one if there is any error at one file i need to notify to the user.I have created Bat file in-order to execute in a sequence.how to validate in bat file
    say
    01.sql ---Sucess
    02.sql --- Fail -- intimate and not to execute rest of sql files
    03.sql
    04.sql
    Thanks!

    933663 wrote:
    I am going to create the database
    cloneDBCreation.sql
    CloneRmanRestore.sql
    init.ora
    initEDIDBTemp.ora
    lockAccount.sql
    postDBCreation.sql
    postScripts.sql
    rmanRestoreDatafiles.sql
    dbname.bat
    dbname.sqlSo i need to validate each and every .sql whether it succeed or not. if there is failure then needs to notify the user. Use the SQL*Plus macro/command, WHENEVER SQLERROR EXIT <n>, to terminate a sql script when it hits an error - and have it return a specific exit code to the caller (o/s command line in this case). Note that exit codes are typically defined as a single byte in shells - which means it can only returns 0 to 255.
    In the command line shell, check the exit code of the previous command - which would be command than ran sqlplus and the sql script. If the exit code is for example 255, then you know the WHENEVER SQLERROR command was executed. And then you cease processing sql scripts.
    Simplistically (I do not do Windows), it will look as follows:
    --// sql script
    whenever sqlerror exit 255
    ... rest of the script
    @echo off
    rem command shell script
    prompt executing script 1
    sqlplus -s /nolog @sqlscript1.sql
    if ERRORLEVEL 255 goto :ScriptFailed
    prompt executing script 2
    sqlplus -s /nolog @sqlscript2.sql
    if ERRORLEVEL 255 goto :ScriptFailed
    goto :Success
    :ScriptFailed
    echo ...
    goto :End
    :Sucess
    echo ..
    goto :End
    :End

  • Query Regarding the Oracle PL/SQL Developer OCA

    Hi All
    I am planning to go for the certification "Oracle PL/SQL Developer OCA "
    But I am not sure what is value of this certification in market.
    Please help me out.
    Thanks in advance
    Amit

    My view is this: The more you can put on your resume, usually the better. By itself, its not worth anything. Combined with several years of experience, it could make a difference. If you go for a job and have 5 years of experience and a certification, and the other candidate just has 5 years, as long as you both interview well, I'd say you have a slightly better shot because you have that extra thing on your resume.
    You need to look at it in that respect - but its not a magic key to get you any job. Of course different countries may be different in how they view certiciations.

  • Oracle.xml.sql.OracleXMLSQLException: getCollectionMetaData:

    The following Java code:
    // Create an OracleOCIConnectionPool instance with default configuration
    OracleOCIConnectionPool cpool = new OracleOCIConnectionPool("appserver", "9ias", url, null);
    // Print out the default configuration for the OracleOCIConnectionPool
    System.out.println ("-- The default configuration for the OracleOCIConnectionPool --");
    displayPoolConfig(cpool);
    // Get a connection from the pool
    OracleOCIConnection conn1 = (OracleOCIConnection) cpool.getConnection("usecase", "uml");
    // Create a Statement
    Statement stmt = conn1.createStatement ();
    // Select the ENAME column from the EMP table
    ResultSet rset = stmt.executeQuery ("select * from usecases_ov");
    OracleXMLQuery q = new OracleXMLQuery(conn1,"select * from usecases_ov");
    System.out.println(q.getXMLString());
    Produces:
    -- The default configuration for the OracleOCIConnectionPool --
    Min poolsize Limit: 1
    Max poolsize Limit: 1
    Connection Increment: 0
    NoWait: false
    Timeout: 0
    PoolSize: 1
    ActiveSize: 0
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: getCollectionMetaData: this method is not supported by 'OracleXMLDataSetGenJdbc' class. Please use 'OracleXMLDataSetExtJdbc' instead.</ERROR>
    Is there a workaround?

    Solved:
    Replace the last three lines of the above code with -
    I replaced the corresponding section of the above code with:
    ResultSet rset = stmt.executeQuery ("select * from usecases_ov");
    OracleXMLDataSetExtJdbc dset =
    new OracleXMLDataSetExtJdbc(conn1, "select * from usecases_ov");
    OracleXMLQuery q = new OracleXMLQuery(dset);
    System.out.println(q.getXMLString());

  • Oracle XML SQL utility, error oracle.xml.sql.OracleXMLSQLException:....

    I am using Oracle XML SQL utility to generate some XML using CURSOR
    operator.
    Following is the query -
    SELECT PROJECT.PROJ_CD,
    PROJECT.PROJ_TITLE,
    CURSOR(SELECT ISSUES.ISSUE_ID
    FROM ISSUES
    WHERE PROJECT.PROJ_ID = ISSUES.PROJ_ID )
    as ISSUES_DATA
    FROM PROJECT
    WHERE PROJECT.PROJ_ID = 1
    This query works fine when I create a direct connection using Oracle JDBC
    thin driver. But when I execute same thing using a connection from a
    Weblogic connection pool (which uses exactly the same Oracle JDBC thin
    driver, classes12.zip), I get following error-
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: cursorGetMetaData: this method
    is not supported by OracleXMLDataSetGenJdbc' class. Please use
    'OracleXMLDataSetExtJdbc' instead.</ERROR>
    Following are the details about my environment:
    Weblogic5.1 on Windows NT 4.0
    Oracle 8.1.5 on Sun Solaris
    Oracle JDBC thin Classes12.zip (from Oracle 8.1.6)
    Oracle XML SQL utility XSU12_ver1_2_1
    Does anyone have any idea what is going on. Please help.
    Thanks.

    Thanks for your reply.
    Here is what I am doing:
    I have connection pool defined in welogic.properties file
    weblogic.jdbc.connectionPool.oraclePool=\
    url=jdbc:oracle:thin:@192.168.2.251:1521:orcl,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=1,\
    maxCapacity=15,\
    capacityIncrement=1,\
    allowShrinking=true,\
    shrinkPeriodMins=5,\
    refreshMinutes=5,\
    testTable=,\
    props=user=someuser;password=somepasswd
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=everyone
    weblogic.jdbc.TXDataSource.orclDataSource=oraclePool
    Then I have a DBConnection class which gets connection from the pool
    following is some code from DBConnection class
    private Connection con = null;
    private DataSource ds = null;
    private String providerURL;
    private String dataSource;
    private String contextFactory;
    private IpmsProps ipmsProp = null;
    public Connection getConnection() {
    if ( con == null ) {
    try {
    ipmsProp = IpmsProps.getInstance();
    providerURL = ipmsProp.getProviderURL();
    dataSource = ipmsProp.getDataSource();
    contextFactory = ipmsProp.getContextFactory();
    Properties p = new Properties();
    p.put(javax.naming.Context.PROVIDER_URL, providerURL);
    p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
    contextFactory);
    Context ctx = new InitialContext(p);
    Context ctx = new InitialContext();
    ds = (DataSource) ctx.lookup(dataSource);
    con = ds.getConnection();
    } catch (Exception e) {
    System.out.println("Error While creating connection! " +
    e.toString());
    } // catch
    I Hope you will be able to provide me some work around.
    Thank you very much for the help.
    Rajinder.
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi. It's probably because you're calling some Oracle-specific method,passing it
    a pool JDBC object, and though the Oracle methos signature says it will
    take a generic java.sql.XXX object, it really is going to assume the thingis
    an Oracle class, and fails when it tries to cast it to such.
    Depending on how you're getting your pool connection, I may have aworkaround.
    Joe
    Rajinder Arora wrote:
    I am using Oracle XML SQL utility to generate some XML using CURSOR
    operator.
    Following is the query -
    SELECT PROJECT.PROJ_CD,
    PROJECT.PROJ_TITLE,
    CURSOR(SELECT ISSUES.ISSUE_ID
    FROM ISSUES
    WHERE PROJECT.PROJ_ID =
    ISSUES.PROJ_ID )
    as ISSUES_DATA
    FROM PROJECT
    WHERE PROJECT.PROJ_ID = 1
    This query works fine when I create a direct connection using OracleJDBC
    thin driver. But when I execute same thing using a connection from a
    Weblogic connection pool (which uses exactly the same Oracle JDBC thin
    driver, classes12.zip), I get following error-
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: cursorGetMetaData: thismethod
    is not supported by OracleXMLDataSetGenJdbc' class. Please use
    'OracleXMLDataSetExtJdbc' instead.</ERROR>
    Following are the details about my environment:
    Weblogic5.1 on Windows NT 4.0
    Oracle 8.1.5 on Sun Solaris
    Oracle JDBC thin Classes12.zip (from Oracle 8.1.6)
    Oracle XML SQL utility XSU12_ver1_2_1
    Does anyone have any idea what is going on. Please help.
    Thanks.--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advancedpositions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San JoseCA.
    Send resumes to [email protected]

  • Where is the catrman.sql script ?

    Hello,
    I have created the rman user in a new database and now want to execute the catrman.sql script.
    But it's not in the default location
    @ORACLE_HOME/rdbms/admin nor everywhere on my harddrive.
    I need it to have a Recovery-Katalog.
    Thanks

    Here are some notes from the Recovery Manager Users Guide and Reference:
    The create catalog command (see "createCatalog" on page 10-59) creates the recovery catalog. It replaces catrman.sql and associated scripts in the
    dbs/admin directory.
    To create an 8.1.6 catalog that is backwards compatible with pre-8.1.6 RMAN executables, you must issue create catalog with the older RMAN version first(or run catrman.sql if using a pre-8.1.5 release), and then execute upgrade catalog with the 8.1.6 RMAN.
    Note: In releases prior to 8.1.5, you created the recovery catalog schema by connecting to the recovery catalog database and executing the catrman.sql script.

  • Unable to upload sql scripts in oracle database express edition 10g

    Hi!
    To start, I inform you that I am beginner with Oracle. I installed Oracle 10g Express Edition on my Ubuntu 9.10 like this:
    :~$ dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
    :~$ /etc/init.d/oracle-xe configure
    and I keep default value. Then I go on http://127.0.01:8080/apex, I login with system account, I create another dba account etc ... all looks very well ! Then I follow this tutorial: http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm
    and I am unable to load sql script which is given in this tutorial: load_sample.sql (page:What to do first> Loading Data). I try with a little sql script and same result. I use gedit with UTF-8 and load in UTF-8, my browser is Firefox (I try with Epiphany also).
    The result is: when I upload a script, The browser returns "script uploaded." Then I can click on my script but the file is empty ! Nothing is done when i click on "run". Also I can' create a script; With Epiphany browser, the frame to write is all red. To import a script I have to copy one by one request in sql commands. I try also to change the owner of load_sample.sql:
    -rw-r--r-- 1 oracle dba 49969 2010-01-10 12:05 load_sample.sql
    But it doesn't work. If someone has an idea ? Thanks for your help.
    regards
    Alex.
    load_sample.sql:
    CREATE TABLE regions
    ( region_id NUMBER
    CONSTRAINT region_id_nn NOT NULL
    , region_name VARCHAR2(25)
    CREATE UNIQUE INDEX reg_id_pk
    ON regions (region_id);
    ALTER TABLE regions
    ADD ( CONSTRAINT reg_id_pk
    PRIMARY KEY (region_id)
    ) ;

    Hi,
    So, go to shell ,position yourself in the path where load_sample.sql is, login to the XE as the user with whom you need to run load_sample.sql , and execute
    +@load_sample.sql.+
    Sorry to hijack this thread but I am having exactly the same problem in Ubuntu, it seems as if IE is the only browser that allows you to do this, but installing that in Ubuntu looks like a whole other world of pain I do not really want to get involved in at the moment.
    I like the sound of just shortcutting the sql upload through the shell but I'm a beginner and I do not understand your comment well enough to implement it myself.
    Could you please explain these in more granular layman's terms for someone who is unfamiliar with Linux syntax?
    By 'Shell' do you mean the Terminal or the SQL Command Line? What exactly should I be typing in there to execute the sql?
    I have saved the SQL file on my desktop (jon@jon-pc, it's a virtual Ubuntu machine on a Windows Vista host).
    Thanks in advance
    Jon

  • 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).

  • Display blob field image in Oracle Express

    Hi,
    I upgraded the apex in my Oracle express edition to 3.2 and tried to display image in blob field following the step in the Apex tutorial,
    but the error '*The requested operation is not allowed* ' prompt.
    I save the image file in a table with fields mime1,picture1=> blob field.
    I created a problem as follow:
    CREATE OR REPLACE PROCEDURE download_my_file(p_hotel_id in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    --execute immediate
    --'SELECT MIME_TYPE'||to_char(p_picture)||', picture'||to_char(p_picture)||', '||to_char(p_picture)||',DBMS_LOB.GETLENGTH(blob_content) '||
    --'INTO v_mime,lob_loc,v_file_name,v_length FROM hotels_pic '||
    --'WHERE hotel_id = '||to_char(p_hotel_id);
    select mime_type1,picture1,'test/picture1',DBMS_LOB.GETLENGTH(picture1)
    INTO v_mime,lob_loc,v_file_name,v_length
    from hotels_pic where hotel_id=1;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'),FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment;
    filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    GRANT EXECUTE ON download_my_file TO apex_PUBLIC_user;
    GRANT EXECUTE ON download_my_file TO public;
    I tried display the image by using <img src="#OWNER#.download_my_file?p_hotel_id=1" height=60 width=40 /img>
    But the image don't display...
    if I type http://127.0.0.1:8080/apex/HOTEL.download_my_file?p_hotel_id=1 to display the picture , the error " Forbidden,The requested operation is not allowed" prompt.
    Am I miss out anything? Anyone can help?
    Thanks
    Vincent

    Hi,
    I use a slightly difference code to display images: [http://apex.oracle.com/pls/otn/f?p=267:11]
    It is possible that your GRANT command needs to be for PUBLIC instead of public - some things are case-sensitive.
    Also, have you checked in SQL Workshop, Object Browser, Procedures to see if your procedure is valid?
    Andy

  • How to use parameters in oracle SQL script????

    Right now I am writing a SQL script to create a schema and build the objects of this schema....
    I use a .net winform program to run sqlplus to parse this sql script ...
    The problem is that the schema name and the tablespace's location and the sys password must be input by the user, so my SQL script should use these runtime input parameters instead of const parameters....
    So, how to use parameter in SQL script ...........
    Are there some example scripts in oracle home directory for me to refer to????

    Hi,
    UNISTD wrote:
    thanks .....
    what's the difference between variable , define, accept in sqlplus ???VARIABLE declares (but does not assign a value to) a bind variable. Unlike substitution variables, bind variables are passed to the back end to be compiled, and they can only be values in certain data types. You can not use a bind vaiable in place of an identifier, so to do something like
    CREATE USER  &1 ...a bind variable won't work.
    "DEFINE x = y" sets the substitution variable &x to have the value y. There is no user interaction (unless x or y happen to contain undefined substtiution variables).
    "DEFINE x" shiows the value of the substitution variable &x, or, if it is undefined, raises a SQL*Plus error. I use this feature below.
    ACCEPT sets a substitution variable with user interaction.
    And if the user miss some parameters in “sqlplus /nolog ssss.sql par1 par2 par5 par6”, how to use default value of the miss parameters??Don't you need a @ befiore the script name, e.g.
    sqlplus /nolog @ssss.sql par1 par2 par5 par6Sorry, I don't know of any good way to use default values.
    The foloowing works, but, as you can see, it's ugly.
    "DEFINE 1" display a message like
    DEFINE 1            = "par1" (CHAR)if &1 is defined; otherwise,it will display a SQL*Plus error message like
    SP2-035: symbol 1 is UNDEFINEDNotice that the former contains an '=' sign, but the latter does not.
    The best way I know to use default values is to run the DEFINE command, save the output to a filee, read the file, and see if it's an error message or not.
    So you can use a script like this:
    --     This is  DEFINE_DEFAULT.SQL
    SPOOL     got_define_txt.sql
    DEFINE     &dd_old
    SPOOL     OFF
    COLUMN     dd_new_col     NEW_VALUE     &dd_new
    WITH     got_define_txt     AS
         SELECT  q'[
              @got_define_txt
    ]'               AS define_txt
         FROM    dual
    SELECT     CASE
             WHEN  define_txt LIKE '%=%'
             THEN  REGEXP_REPLACE ( define_txt
                               , '.+"
    ([^"]*)
                         , '\1'
             ELSE  '&dd_default'
         END        AS dd_new_col
    FROM     got_define_txt
    {code}
    and start your real script, ssss.sql, something like this:
    {code}
    DEFINE          dd_new     = sv1
    DEFINE          dd_old     = 1
    DEFINE          dd_default     = FOO
    @DEFINE_DEFAULT
    DEFINE          dd_new     = sv2
    DEFINE          dd_old     = 2
    DEFINE          dd_default     = "Testing spaces in value"
    @DEFINE_DEFAULT
    {code}
    when this finishes running, the substitution variable &sv1 will either have the value you passed in &1 or, if you didn't pass anything, the default value you specified, that is FOO.
    Likewise, &sw2 will have the value you passed, or, if you didn't pass anything, the 23-character string 'Testing spaces in value'.
    Here's how it works:
    Define_default.sql puts the output of the "DEFINE x" command into a column, define_txt, in a query.  That query displays either the existing value of the substitution variable indicated by &dd_old or, if it is undefined, the default value you want to use, which is stored in the substitution variable &dd_default.  The substitution variable named in &dd_new is always set to something, but that something may be its existing value.
    Notice that the paramerters to define_default.sql must be passed as global varibales.
    Why didn't I just use arguments, so that we could simply say:
    {code}
    @DEFINE_DEFAULT  sv1  1  FOO
    {code}
    ?  Because that would set the substitution variables &1, &2 and &3, which are miost likely the very ones in which you're interested.
    I repeat: there must be a better way, but I'm sorry, I don't know what it is.
    I usually don't do the method above.  Instead, I always pass the required number of parameters, but I pass dummy or plce-holder values.
    For example, if I wanted to call ssss.sql, but use defulat vlaues for &1 and &3, then I would say something like:
    {code}
    @ssss  ?  par2  ?
    {code}
    and, inside ssss.sql, test to see if the values are the place holder '?', and, if so, replace them with some real default value.  The use has  to remember what the special place holder-value is, but does not need to know anything more, and only ssss.sql itself needs to change if the default values change.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • HP Color LaserJet 3600 series (VISE Installer)

    Hi everyone, I made the mistake of using the VISE Installer that HP suggests as a download for the HP Color LaserJet 3600 series printer. I installed it, and then couldn't figure out why I still couldn't see this printer driver. After reading http://

  • Moving music files to external hard drive

    I bought an external hard drive and want to free up my main C drive by moving my music, pictures and videos to it. One of the folders in My Music is "iTunes" which has the folder "iTunes Music" which holds all of the music that iTunes communicates wi

  • Can I install three of hard drive on Ultra-10??

    Help me, plz~~ I have Ultra-10 with Solaris 8. <Primary IDE channel> Rear hard drive(master-device 0) --------- Front hard drive(slave-device 1) ----------- Motherboard J15(primary channel) <Sencondary IDE channel> hard drive(master-device 0) -------

  • JDBC Adapter - DELETE operation not working in receiver backend system

    Hi All, In my scenario ,I want  to delete entire records of the table from one backend system. I have created the inbound message and after mapping it is as below:   <?xml version="1.0" encoding="UTF-8" ?> <ns0:abc_delete xmlns:ns0="http://abc/xi/BAC

  • Workflow - Purchase order Release strategy

    Hi All, Good Morning I had created workflow for Purchase order release strategy with steps(To Determine Agents, Release of Purchase order, Release of PO effected) and in Me21N I created PO and PO came to my SAP inbox(SBWP) and I released that PO and