Run sql statements in PL/Sql Developer without installing Oracle database?

Hi all,
I wish to ask is there any possibility to run Run sql statements in PL/Sql Developer without installing Oracle database?
Regards.

Hello Jimmy,
this is the forum for the tool SQL Developer and, as the title says, *(Not for general SQL/PLSQL questions)*.
PL/Sql Developer is not an Oracle tool, but from allound allroundautomations.
And you need access to a database to run SQL statements. This does not need to be one installed by yourself.
Regards
Marcus

Similar Messages

  • Working on SQL Developer / pl/sql developer without installing Oracle

    HI,
    I am working on SQL Developer tool without installing oracle into my local machine.
    I just took server IP as hostname and continuing with the same/
    Now, since I donot have tns names, I am not able to use any other user other than my work related.
    like scott etc.
    could anyone let me know, is there any way that i can work on sql developer or pl/sql developer without installing oracle into local machine
    like using scott etc...
    for testing and learning purpose of self code.
    thanks in advance.

    VBSK wrote:
    I am working on SQL Developer tool without installing oracle into my local machine. You need an Oracle client driver - this is mandatory.
    No, you do not need a TNS alias (as the connection string can be build manually by the application and the driver).
    So SQL*Developer needs to have an OCI (Oracle Call Interface) client driver. This can be "installed" using Oracle Instant Client.
    Instant Client does not really install - to use it takes 3 basic steps:
    - download it (zip file)
    - unzip it to a directory (e.g. C:\InstantClient on Windows)
    - add to your Windows User's environment an ORACLE_HOME variable that points to this directory
    These steps should suffice in making the driver in in Instant Client available to Oracle applications. (works for me running an Oracle OCI client like <i>Mumbai</i> or Oracle's <i>SQL Data Modeler</i>).
    If you want a tnsnames.ora file, then create the file and create a new environment variable called TNS_ADMIN that refers to directory location of the file. It can use the same location as your Instant Client directory.
    PS. I assume you have an existing Oracle server to connect to.

  • Multiple SQL statements in Init SQL in WLS 8.1

    How to seperate multiple SQL statements in Init SQL text box ?
    For example, I want to enter following two SQL statements. How do I seperate them.
    I tested with / and ; as seperator, but did not worked..
    alter session set nls_date_format = 'MM/DD/YYYY'
    set role xxx_role identified by xxxx

    Mahendra wrote:
    Thanks Joe.
    Following worked for Oracle 8.1.7Good news.
    but did not for 8.0.6
    SQL BEGIN EXECUTE IMMEDIATE 'ALTER SESSION SET nls_date_format = ''MM/DD/YYYY''';
    EXECUTE IMMEDIATE 'SET ROLE xxx identified xxx'; end;
    Do you know 8.0.6 syntax ?You might try asking oracle, but note that no one is supporting that old version
    of Oracle any longer...
    Joe
    >
    Mahendra
    Joe Weinstein <[email protected]> wrote:
    Hi.
    I found the syntax, I think. Try this:
    BEGIN EXECUTE IMMEDIATE 'ALTER SESSION SET nls_date_format = 'MM/DD/YYYY'';
    EXECUTE IMMEDIATE 'SET ROLE <<role name>> identified
    by <<pwd>>';END;
    Joe
    Mahendra wrote:
    Still getting following exception.
    <Feb 19, 2004 1:47:58 PM EST>
    <Warning>
    <JDBC> <BEA-001164>
    <Unable to initialize connection in pool "XXXX".
    Initialization
    SQL = "BEGIN alter session set nls_date_format = 'MM/DD/YYYY'; setrole xxxx_role
    identified by
    xxxx; END;".
    Received exception: "java.sql.SQLException: ORA-06550: line 1,column7:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of thefollowing:
    begin declare exit for goto if loop mod null pragma raise
    return select update while <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql commit <a single-quoted SQL string>
    The symbol "update was inserted before "ALTER" to continue.
    ORA-06550: line 1, column 61:
    PLS-00103: Encountered the symbol "ROLE" when expecting one of thefollowing:
    transaction
    ".>
    <Feb 19, 2004 1:47:59 PM EST> <Notice> <WebLogicServer> <BEA-000355><Thread "Li
    Joe Weinstein <[email protected]> wrote:
    Mahendra wrote:
    Thanks for reply, but that did not worked.
    Get following exception
    Unable to initialize connection pool "POOL_NAME".
    Initialization SQL = "Select count(*) from ""SQL BEGIN alter sessionset nls_date_format
    = 'MM/DD/YYYY'; set role xxx_role identified by xxxx; END;"". Receivedexception:
    "java.sql.SQLException: ORA-00972: identifier is too long
    Since we have not given SQL before that statement, BEA is treating
    statment "SQL Begin ....." as a table name.
    Then I tried by putting SQL out side quotes, like SQL "Begin .....end;" but the
    same error.
    Is there any way around it ?
    MahendraHi. The full string you should enter into the console when you define
    the
    initSQL parameter is:
    SQL BEGIN alter session set nls_date_format = 'MM/DD/YYYY'; set role
    xxx_role identified by xxxx; END;
    Let me know...
    Joe
    Joe Weinstein <[email protected]> wrote:
    Mahendra wrote:
    How to seperate multiple SQL statements in Init SQL text box ?
    For example, I want to enter following two SQL statements. How do
    I
    seperate them.
    I tested with / and ; as seperator, but did not worked..
    alter session set nls_date_format = 'MM/DD/YYYY'
    set role xxx_role identified by xxxxThis will always be DBMS-specific. If this is for oracle, you can
    try:
    "SQL BEGIN alter session set nls_date_format = 'MM/DD/YYYY'; setrole
    xxx_role identified by xxxx; END;"
    Joe

  • Run Form in HTTPS or SSL mode without installing Application Server

    Hi all,
    I have installed Oracle Database 10g and Oracle Developer suite 10g in my PC (Window XP). Now I want to implement SSL or running forms in HTTPS mode instead HTTP and I don't want to install Application server.
    Any workaround is there to run Forms in HTTPS mode without installing Application server.
    Thanks,
    Omer

    Performance issue? How old is your hardware? I am running OAS 10.1.2.3 on a Server 2003 VM which basically consumes 512MB RAM and ludicrous amounts of CPU/IO.
    In any case: as said if you want to test SSL in a real life scenario then enabling SSL in OC4J is not what you want to do. In production the configuration is completely different, as there you would configure Apache to run your forms via SSL.
    What comes to my mind would be to install Apache 1.3 (this would be the version OAS 10.1.2 uses), configure mod_oc4j there and configure it with SSL. On the other hand this also isn't the configuration you have in production so this also is not exacly what you want.
    If you want to verify if your forms application will run via SSL then most certainly it will run without changing your sources. The only things you might have to change would be if you do HTTP Requests from the database to your application server via utl_http or from the client to the application server via java beans or via the java importer.
    But for tests I'd strongly recommend doing it via an application server installation, and not via developer suite.
    cheers

  • Possible to do "grant" sql statement in Native SQL?

    We have a need to do a grant of access from one of our systems out for various applications.  In order for this to work we need to run a grant access command on the table and are trying to put a wrapper around this so we can use an abap.  Below is the code I am unit testing.  Two questions.  First, can a grant be done via native SQL in abap?  Second, if it can be done, what is the error with the logic where I am trying to put in the table name via a parameter.
    REPORT  ZLJTEST2.
    tables dd02l.
    DATA scarr_carrid TYPE dd02l-tabname.
    SELECT-OPTIONS s_carrid for dd02l-tabname no intervals.
    DATA s_carrid_wa LIKE LINE OF s_carrid.
    DATA name TYPE c LENGTH 20.
    TRY.
        EXEC SQL.
          CREATE FUNCTION selfunc( input CHAR(20) )
            RETURNING char(20);
            DEFINE output char(20);
            set schema sapr3;
            grant select on table input to group infouser;
            RETURN output;
            END FUNCTION;
        ENDEXEC.
        LOOP AT s_carrid INTO s_carrid_wa
                         WHERE sign = 'I' AND option = 'EQ'.
          TRY.
             EXEC SQL.
                EXECUTE PROCEDURE selfunc( IN  :s_carrid_wa-low,
                                           OUT :name )
              ENDEXEC.
              WRITE: / s_carrid_wa-low, name.
            CATCH cx_sy_native_sql_error.
              MESSAGE `Error in procedure execution` TYPE 'I'.
          ENDTRY.
        ENDLOOP.
        EXEC SQL.
          DROP FUNCTION selfunc;
        ENDEXEC.
      CATCH cx_sy_native_sql_error.
        MESSAGE `Error in procedure handling` TYPE 'I'.
    ENDTRY.

    Hi,
    Yes it is posible.
    I made one program like you want. But it need very long code.
    Here I explain the idea:
    1. Create Screen with input TEXT EDIT CONTROL.
        This is for input SQL Statement.
    2. Get SQL Statement from Text Edit Control using method <b>get_text_as_r3table</b>.
    3. Now we need to separate SQL Statement into different table.
        We Separate SELECT, FROM, WHERE, GROUP, HAVING, ORDER, etc.
    4. We need dynamic internal table to store the data.
    5. Select the data according SQL statement.
          SELECT (IT_SELECT)
            into corresponding fields of table  <dyn_table>
          FROM (IT_FROM)
          WHERE (IT_WHERE)
          GROUP BY (IT_GROUP)
          HAVING (IT_HAVING)
          ORDER BY (IT_ORDER).
    6. Display our data using ALV GRID
    Hopefully it will help you.
    Regards,

  • High-load sql statement using v$sql

    Hi,
    Can any one please tell me, how do we find high load sql statement and it's user from v$SQL view.
    what is the query to find it.
    Thank you!

    Hello,
    You can run ADDM report and check its findings it will tell you tome stuff like the following:
         Finding
    67      SQL statements consuming significant database time were found.
    40.7      Time spent on the CPU by the instance was responsible for a substantial part of database time.
    20.7      Individual SQL statements responsible for significant user I/O wait were found.
    13.7      Individual database segments responsible for significant user I/O wait were found.Kind regards
    Mohamed Elazab

  • Publish PL/SQL package as a web service without using Oracle AS?

    Hello, my question is:
    Can I publish a PL/SQL package as a web service in Oracle10g directly from the
    database and/or the oracle http server, without needing Oracle Application
    Server?
    Thank you in advance.

    Hi,
    there is a tutorial:
    http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    "Developing a Web Service from a PL/SQL Package"
    I think you need Oracle AS, because you need an instance which "talks" http....

  • Performance between SQL Statement and Dynamic SQL

    Select emp_id
    into id_val
    from emp
    where emp_id = 100
    EXECUTE IMMEDIATE
    'Select '|| t_emp_id ||
    'from emp '
    'where emp_id = 100'
    into id_valWill there be more impact in performance while using Dynamic SQL?

    CP wrote:
    Will there be more impact in performance while using Dynamic SQL?All SQLs are parsed and executed as SQL cursors.
    The 2 SQLs (dynamic and static) results in the exact same SQL cursor. So both methods will use an identical cursor. There are therefore no performance differences ito of how fast that SQL cursor will be.
    If an identical SQL cursor is not found (a soft parse), the SQL engine needs to compile the SQL source code supplied, into a SQL cursor (a hard parse).
    Hard parsing burns a lot of CPU cycles. Soft parsing burns less CPU cycles and is therefore better. However, no parsing at all is the best.
    To explain: if the code creates a cursor (e.g. INSERT INTO tab VALUES( :1, :2, :3 ) for inserting data), it can do it as follows:
    while More Data Found loop
      parse INSERT cursor
      bind variables to INSERT cursor
      execute INSERT cursor
      close INSERT cursor
    end loopIf that INSERT cursor does not yet exists, it will be hard parsed and a cursor created. Each subsequent loop iteration will result in a soft parse.
    However, the code will be far more optimal as follows:
    parse INSERT cursor
    while More Data Found loop
      bind variables to INSERT cursor
      execute INSERT cursor
    end loop
    close INSERT cursorWith this approach the cursor is parsed (hard or soft), once only. The cursor handle is then used again and again. And when the application is done inserting data, the cursor handle is released.
    With dynamic SQL in PL/SQL, you cannot really follow the optimal approach - unless you use DBMS_SQL (a complex cursor interface). With static SQL, the PL/SQL's optimiser can kick in and it can optimise its access to the cursors your code create and minimise parsing all together.
    This is however not the only consideration when using dynamic SQL. Dynamic SQL makes coding a lot more complex. The SQL code can now only be checked at execution time and not at development time. There is the issue of creating shareable SQL cursors using bind variables. There is the risk of SQL injection. Etc.
    So dynamic SQL is seldom a good idea. And IMO, the vast majority of people that post problems here relating to dynamic SQL, are using dynamic SQL unnecessary. For no justified and logical reasons. Creating unstable code, insecure code and non-performing code.

  • SQL statement works with SQL/Plus - but not with ODBC

    Hi all,
    I have a rather copmplex SQL statement:
    BEGIN
    UPDATE ContentDataTable
    SET SYMBOLIC_PATH_PARENT = N'/Test',
    SYMBOLIC_NAME = N'HAWK01.GIF',
    VERSION_NUMBER = 1 +
    SELECT MAX(VERSION)
    FROM
    (SELECT MAX(VERSION_NUMBER) AS VERSION
    FROM ContentDataTable WHERE
    SYMBOLIC_PATH_PARENT = N'/Test' AND
    SYMBOLIC_NAME = N'HAWK01.GIF'
    UNION
    SELECT MAX(VERSION_NUMBER) AS VERSION
    FROM RevisedContentDataTable WHERE
    SYMBOLIC_PATH_PARENT = N'/Test' AND
    SYMBOLIC_NAME = N'HAWK01.GIF'))
    WHERE SYMBOLIC_PATH_PARENT = N'/Test' AND SYMBOLIC_NAME = N'HAWK02.GIF' AND VERSION_NUMBER = 1;
    END;
    It works fine in SQL/Plus or SQL Worksheet and does what it should do ;-)
    But when using it via ADO (ODBC Driver) I get the following error:
    PLS-00103 found 'string' but expected one of the following: 'string'"}
    Any idaes?
    Thanx,
    Christian
    null

    Pardon my ignorance, but what's the significance of the N'<string>' construction? That's not one I'm familar with.
    Justin

  • Installing Oracle Database and SQL Developer

    Hi, I was looking for some help/advice in regards to installing an Oracle Database and SQL Developer onto a Windows 7 32bit machine. I have been asked to create a database to store data that I create through reports in Excel so I am required to create a local database but not sure how to go about doing this. Also not sure if I install the Express Edition or Oracle Database 11g R2. If somebody could please advise on how I can get this started or even any links/tutorials that would guide me in how to get this installed with a localhost.
    Thanks in advanc.

    318f20b8-a3d0-4fb4-bb0f-73785250b7d4 wrote:
    Thanks guys, I have managed to install Oracle 11gR2 and I have setup a database using the dbca tool and I can connect to my new database. One thing that I have noticed is that when i look into my tables in sql developer i see loads of different tables i.e. def$_, logmnr_, etc and I am not sure why this is as I expected an empty tablespace.
    Thanks btw for all your help.
    One of the key principles of relational databases is that they use their own facilities to manage themselves.  That means the database management system uses the database to manage data about the database using exactly the same facilities (tablespaces, tables, user accounts, procedures, etc) that an application uses to keep data for the application. See "data dictionary"   So there is no such thing as a completely empty database.
    As said by others, you do NOT want to be creating your own tables under oracle's schemas (users) or in oracle's own tablespaces (esp. SYSTEM and SYSAUX).  Create your own user account/schema.  Create your own tablespace. Make that tablespace the default for that user.

  • SQL statement inside a SQL statement

    Hello,
    I'm trying to write a SQL statement to a field in a table ( so that i can store some sql statements in a table) For the most part this code works fine (where string1 is the statement):
    updatestring1 = "update [@SQLSTATEMENTS] set [U_statement] = '" & qstring1.ToString & "' where [Code] = " & row
    oRecordSet.DoQuery(updatestring1)
    but when the statement that i want to save contains a WHERE clause that refernces a string (enclosed by single quotes), the update query fails - because of the quotes i think.
    I'm thinking i might be able to use different symbols in the statement to signify that it is a string but i'm not sure...
    Is there a better way to write the query to a field in a table ? maybe one that doesn't require an update query ? I'm pretty new to SDK (and SQL), so any advice will help - even if it's something really obvious...
    Thanks!

    I am not sure why you need to save SQL queries in the table but, you need to follow up a single quote with another single quote. for example look at the following sql string
    update customer set custname  = 'Customer'' A'  where custid = 'CustA'
    'IS correct
    However the following will fail
    update customer set custname  = 'Customer' A'  where custid = 'CustA'
    Message was edited by: Indika Dekumpitiya

  • Using Oracle Developer Suite 10g Without the Oracle Database

    I have never used Oracle, but have used MS SQL Server 7. I need to learn Forms. An Oracle salesperson suggested I download Oracle Developer Suite 10g (the demo product). It includes the Oracle Developer Suite (with Forms Developer), and many other programs.
    The salesperson said it includes a database server, but I suspect it does not. I only downloaded the package last night, and have begun to skim the documentation, but I see nothing that looks like a database server.
    In SQL Server 7, the database engine is run as a service and you create and manage your tables (do all the database admin stuff) using SQL Enterprise Manager.
    So, does this package include a database engine/server? Or must you also have the Oracle Database?
    I don't see a demo version of the Oracle Database - is there one?
    Thanks in advance for any help.

    Hi,
    The Developer Suite does not contain a demo version of the Oracle Database.
    You can download the database from this page:
    http://otn.oracle.com/software/products/oracle9i/index.html
    Vincent

  • Monitoring manually using scripts/sql cmds to find the recent changes on Oracle Database

    Hello All,
    I have an Oracle database running on HP Open VMS Alpha server, need to monitor the actvities and changes made to the database.
    I am not sure of any tools which supports HP Open VMS alpha server, Can you help with the scripts or commands to findout recent changes occured on the database.
    I found suddenly a couple of schema sizes showing very less in size than usaul, how to find out the recent changes.
    Regards,
    RanG

    RanG wrote:
    Thanks but sorry EdStevens,
    I was referring to DB Administration/auditing etc on HP Open VMS in specific. Tools or Grid agent installation steps for effective and easy monitoring.
    Regards,
    RanG
    And I was referring to "DB Administration/auditing etc " on any platform.  Oracle's AUDIT function is the same regardless of OS.
    "I found suddenly a couple of schema sizes showing very less in size than usaul,"
    Exactly what do you mean by "schema sizes showing very less in size than usual"?  Schemas don't have sizes.  Only segments.
    Perhaps if you were more explicit in exactly what problem you are trying to solve, we could give better advice, but whatever it is, I seriously doubt that the solution will be OS-specific.

  • Edit in Place without installing Oracle Drive

    Hello
    We wish to use the functionality of 'Edit In Place' through our own custom jsp pages however we do not wish to deploy Oracle Drive to users as we want to force them to use the business logic inherent in our custom jsp pages.
    Is there a way of using 'Edit In Place' without deploying Oracle Drive?
    Thanks
    Phil

    Hi Phil,
    You could build your own "edit-in-place" functionality with some custom programming, given that you are writing custom JSP pages.
    The Content DB Development Kit has a topic titled "Custom Web Applications" with an explanation on how to configure custom servlets.
    You could write a custom servlet that uses the Content DB API to update Documents and interact with your custom JSP/HTML page, which could provide an "edit-in-place" GUI.
    You could use a product such as Editize (http://www.editize.com) to provide the editing functionality.
    When the client-side editing is finished, the changes can be sent to your custom servlet, which would update the Document.
    If you build this solution, you may be able to offer it to other Content DB customers!

  • Accessing Oracle Server without Installing Oracle Client

    Hi
    I work on a linux based server which would be installed with Oracle Server. My problem is that I dont want to install Oracle Client on every client workstation since there are 1500 PCs in my company.
    Could anyone help me on this?
    Please note that all of the workstation are using Windows Operating System.
    Thanks
    Antony

    I do not believe such an animal exists. Since Oracle's wire protocol is proprietary, reverse engineering it is a very significant investment.
    If you need to access the Oracle server without installing the Oracle client, can you use the thin JDBC driver?
    Justin

Maybe you are looking for

  • Can anyone help me out?

    can anyone help me out? i loaded a 25$ itunes card today i just use my itunes account on a new device it is asking for a security question, i put the right answers but it keeps on saying it was incorrect.. so i log inn my email and password and go to

  • Dequeue messages one at a time

    We have a scenario where we have to send messages to a server(on a TCP/IP port). However since we are expecting huge volumes and the server cannot handle such huge volumes, we are dumping all the messages into an AQ. We want to dequeue these messages

  • Application error handling in BPM?

    Hi, Does any one has done application errorhandling in BPM? Can you please let me know how to use fault messages in RFC calls which are sync, I tried doing once but got error message in Message Interface saying "Message Interface references a RFC and

  • How I manually calculate the Average Valuated Stock Value like in MC.3

    In the R/3 transaction MC.3  the  "Average Valuated Stock Value" help window shows a formula to calculate it. AVSV = ( begining stock value + n stock value at months end ) / ( n + 1 ) What is the meaning of the N?. Where is this value come from.? I'd

  • How does one get his/her podcast to be "featured"

    We have a podcast in th iTunes store, (educational section). We can't seem to find out how we get on the "Featured List" . How is this done? Does it cost extra to get a thumbnail listed? regards