Integrate a command-line sql in oracle

Due to licensing issues, we will have to avoid the access to our database of customer production other than the application developed in forms and reports.

Do you know if there is an easy way to integrate a command-line sql in a form, using the existing connection? a bean pjc?

juliojgs wrote:

The application is ours. We also provide support services, not only the development, but still help them with data in their database of production (updates massive, backdoor... fixing data errors)

The dba just told me that, with the new licensing scheme, we cannot even login sqldeveloper of our client machines to this support for data, then to look for a new way to do. What we can do is to run the application, is the reason for the requirement of the incorporation of a tiny sql Forms client.

Sounds like licenses incorporated. Your customer is only allowed to use the Oracle software in conjunction with your product and is not allowed to use * any * oracle configuration / administration tool (SQL * more / expdp / rman / dbca / dbua...), but only the tools you provide.

However; providing a text box where the end user is again able to enter simple SQL statements certainly is not respect the integrated license agreement.

see you soon

Tags: Oracle Development

Similar Questions

  • Could not connect to command line SQL Oracle XE

    Hello
    I use Oracle Xe on windows XP... I can connect to SQLPLUS using the windows shell with each of them to the account user and password as
    --------------------------------------------------------------------------------------------------------------
    Microsoft Windows XP [Version 5.1.2600]
    Copyright (C) 1985-2001 Microsoft Corp.

    H:\ > SQLPLUS MAYA/MARCO

    SQL * more: Release 10.2.0.1.0 - Production Thu Jun 30 17:28:12 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL >_
    ---------------------------------------------------------------------------------------------------------------
    but when I use the command line SQL Oracle to start-> all programs/Oracle Database 10 g Express Edition / * execute SQL Command Line * it brings the command SQL line with a quick line of SQL, but it connects to the database.

    ---------------------------------------------------------------------------------------------------------------
    SQL * more: Release 10.2.0.1.0 - Production Thu Jun 30 17:36:12 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    SQL > Select * from cat.
    SP2-0640: not connected
    SQL >
    ----------------------------------------------------------------------------------------------------------------
    and I met with the error "not connected". I'm sure that the database has already started successfully.
    Can you please let me know I'm doing wrong or what is problem with Oracle SQL Command Line?

    Thank you

    Hello

    What is

    connect MAYA/MARCO

    You can issue a query later?

    Kind regards

  • Command-line SQL appears then disappears

    I just installed the version 11g yesterday and I don't get a good start; can't run SQL command line.

    When I run the SQL command line (programs > Oracle Database 11g eXpress Edition > SQL command line) it appears for about a second then disappears
    SQL command line worked well during my first installation of Oracle Database 11 g eXpress Edition and I was able to connect as 'SYSTEM', but not after the reboot.

    Goes the same for the webpage to start; Now I get 'could not connect to 127.0.0.1:8080' when I go to programs > Oracle Database 11 g eXpress Edition > Get Started.
    Database of departure seems to work OK.

    When I run SQL * longer or Oracle SQL Developer, I get "ORA-12154: TNS: could not resolve the connect identifier specified" so this isn't really an option right now.

    Any thoughts on how to get the SQL command line work? Operating system is Windows XP, 32-bit.

    OracleServiceXE Windows service is started?

    From the command prompt:

    sqlplus / as sysdba

    SQL > startup

  • How to run the linux command line sql script

    Hi all!

    Just quick question. On my server I have to install the crontab script which will be eexecute some sql statements.
    How can I undergo command which will execute the script file without asking for password?


    sqlplus user/pass... and then what?


    Thank you

    dlugasx

    sqlplus user/pass @yourscript.sql

  • Running a script from the command line

    Hi all
    First of all, I'd like to say I'm just starting ORACLE 11 g with no prior experience of the database. I currently lectures once a week. However, I am stuck with a problem. I am trying to access my database of the United of the House so I can do some work, apparently I can only access it via the command prompt (which is good for me) I began by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home. However, I have a createHR.sql of script file that is stored in my C:\ORACLE directory which I try to access in order to load my test tables and start practicing with them.
    use command line

    SQL > C:\ORACLE\createHr and I get SP2-0310: unable to connect to the file "C:\ORACLE\create HR.sql".

    normally, this should load and run the script - as with the browser method guests will get the tables is created and the test data.

    I am now officially frustrated that I can't get any done practice, offered any help will be welcome.

    Concerning

    Claude

    Published by: 891128 October 12, 2011 09:33

    Published by: 891128 October 12, 2011 09:41

    Published by: 891128 October 12, 2011 09:44

    891128 wrote:
    I started by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home.
    However, I have a createHR.sql of script file that is stored in my phonebook C:\ORACLE

    These two sentences above are essential. If I had to bet a directory C:\ORACLE assumption is located locally on your laptop. However, it seems you have done a SSH connection to your server and connected to the database using SQL * more customer on the server. The client on the server has no idea or access to files on your machine.

    You must open the script on your laptop and copy / paste into your SQL SSH * more session or you will need to find a way to copy this script on the server, so you can run it.

    I hope this helps!

  • How to specify the instance in SQL * more command line?

    Hello

    I'm learning to Oracle. I currently have 2 instances of database running. I wanted to connect to one of the bodies and used the following command from the command line:
    sqlplus system as sysdba/abc123@ocp11gsid
    
    where 1234 is the password for the system user in the ocp11gsys instance.
    When I run the command above, SQL * more ask me the password. I do not understand why he asks me the password because I provided on the command line.

    What is the correct command line, so he asks me the password? (without defining the variable ORACLE_SID of environment - basically, I want to know how to specify the user, his password and sid, all in the sqlplus command line, without being prompted to enter the password that I mentioned.)

    Thank you for your help,

    John.

    John,

    This is how it works.

    E:\Documents and Settings\aristadba>sqlplus system/oracle as sysdba
    
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 2 22:49:25 2010
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL>
    

    And now it ask the password,

    E:\Documents and Settings\aristadba>sqlplus system as sysdba/oracle
    
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 2 22:50:42 2010
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Enter password:
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL>
    

    Spot the difference?

    The user name and password must unite. What you are to provide the password with the role where it will not be considered.

    Update
    I missed that part,

    What is the correct command line, so he asks me the password? (without defining the variable ORACLE_SID of environment - basically, I want to know how to specify the user, his password and sid, all in the sqlplus command line, without being prompted to enter the password that I mentioned.)

    The only thing that you can specify is the user name and password. The SID must be defined by you, either explicitly using the export or oraenv command if you are on the local system and do not use the TNS to connect to the instance. If you use the TNS, then an appropriate entry should be there which would connect to the required database.

    HTH
    Aman...

    Published by: Aman... on August 2, 2010 22:54

  • SQL * more command line

    Hello, is there a way to run a SQL directly from the sqlplus command line? For example:

    sqlplus usr1/usr1@srv1 select sysdate double

    Thank you

    ~ David

    Another way in Windows:

    c:\>echo select * from dual; | sqlplus scott/tiger@test_db
    
    SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 25 14:41:17 2009
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL>
    D
    -
    X
    
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    c:\>
    
  • How to call CCI Oracle from a command line

    Hello everyone.

    I already asked the following question on Stackoverflow.com , but unfortunately, no one was able to answer, yet. So feel free to respond here or on Stackoverflow - I'll keep track of it and synchronize the answer to each community.

    I have successfully installed the Oracle Code compliance Inspector (CCI) to JDeveloper extension by following the instructions. Later, I was able to run the BCC in JDeveloper. But I'm not able to invoke the Oracle BCC from a command line.

    I can't find the script ("checkCompliance.sh"), mentioned in the documentation. There is no part of the zip file that I downloaded from the oracle.com.

    I tried to execute the compliance.policy.engine.jar file directly, but it fails with an error message:

    java -jar /oracle/jdevhome/jdeveloper/jdev/extensions/oracle.fp.compliance.inspector/lib/compliance.policy.engine.jar -inputDir /AIA/demo -outputDir /ComplianceOut

    Could not load the manifest attribute of hand-Class /oracle/jdevhome/jdeveloper/jdev/extensions/oracle.fp.compliance.inspector/lib/compliance.policy.engine.jar


    Any suggestions on how to invoke the ICC from a command line or where I can find the script mentioned in the documentation?

    About the error message that I read that this can be corrected by adding a manifest file in the archive jar that defines the main class - but what is the main class of this jar file?

    Thanks in advance for your help.

    Well, it's resolved.

    As mentioned in this part of the documentation, the BCC command line tools are distributed with OER.

    The BCC command line tools are distributed with REL in the /tools/solutions/- ComplianceInspector.zip.

    What confused me: REL-download contains only a single .jar file. It took me time to realize that the .jar file is an Installer (installation documentation).

    After properly installing OER, I found the - ComplianceInspector.zip in /repository111/core/tools/solutions /.

    The - ComplianceInspector.zip actually contained the checkCompliance.sh file.

  • PL/SQL in Sql Developer 4 script, works not sqlplus command line.

    Hello guys, Xev here.

    I hope I meet new people there into that in this space. I hope this is the appropriate space to ask this, I see that others have asked about sqlplus and they where permitted to post...

    I have a pl/sql script that runs in sql developer 4, but the exact same script will not run in the sqlplus command line?

    When I run the script, it gives me this, but as you can see with this script that works fine with sql developer, he is not running sqlplus command line.

    ERROR at line 3:

    ORA-06550: line 3, column 28:

    PLS-00201: identifier 'DYNAMIC_COUNTS' must be declared.

    ORA-06550: line 3, column 4:

    PL/SQL: Ignored Element

    ORA-06550: line 39, column 17:

    PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.

    ORA-06550: line 39, column 1:

    PL/SQL: Statement ignored

    ORA-06550: line 41, column 17:

    PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.

    ORA-06550: line 41, column 1:

    PL/SQL: Statement ignored

    ORA-06550: line 43, column 17:

    PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.

    ORA-06550: line 43, column 1:

    PL/SQL: Statement ignored

    ORA-06550: line 45, column 17:

    PLS-00487: Invalid reference to variable 'DYNAMIC_COUNTS % ROWTYPE.

    ORA-06550: line 45, column 1:

    PL/SQL: Statement ignored

    ORA-06550: line 82, column 15:

    PL/SQL: ORA-00942: table or view does not exist

    ORA-06550: line 82, column 3:

    PL/SQL: SQL statement ignored

    Here is the script I use... You define a type of thing in the sqlplus command line?

    Set serveroutput size unlimited

    run the DBMS_OUTPUT. ACTIVATE (buffer_size = > NULL);

    DECLARE

    TYPE nt_tab IS TABLE OF dynamic_counts % ROWTYPE;

    v_nttab nt_tab: = nt_tab();

    FND_LOOK INTEGER.

    v_incr NUMBER: = 0;

    ------------------------------------------------------------------------------------------------------------------------

    BEGIN

    FOR t IN (SELECT master, table_name, column_name

    From all_tab_columns

    Owner WHERE = UPPER ('& SCHEMA_NAME'))

    ------------------------------------------------------------------------------------------------------------------------

    LOOP

    BEGIN

    EXECUTE IMMEDIATE ' with an ACE (select case when REGEXP_LIKE (' | t.column_name |))

    -This search 1 letter and 12 figures-

    ', "^ ([[: alpha:]] |) [[: alpha:]] ({3}) [0-9] {12} $")

    then "match"

    another "no matches found" end up as output of ' | t.Owner | '.' || t.table_name | ')

    Select count (*) in a where a.output = "Match Found" clause '

    IN FND_LOOK;

    ------------------------------------------------------------------------------------------------------------------------

    IF FND_LOOK > 0 THEN

    v_incr: = v_incr + 1;

    v_nttab. EXTEND;

    v_nttab (v_incr) .t_owner: = t.owner;

    v_nttab (v_incr) .t_table_name: = t.table_name;

    v_nttab (v_incr) .t_column_name: = t.column_name;

    v_nttab (v_incr) .fnd_govids: = FND_LOOK;

    END IF;

    ------------------------------------------------------------------------------------------------------------------------

    / * This is for DBMS output, thus we have 2 different ways, one can see the results in the table dynamic_counts

    and in the dbms_output

    */

    IF FND_LOOK > 0 THEN

    Dbms_output.put_line (t.owner |) '.' || t.table_name | ' ' || t.column_name | ' ' || FND_LOOK);

    END IF;

    ------------------------------------------------------------------------------------------------------------------------

    / * Exception Handeling * /.

    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line)

    "Generic error".

    || t.column_name

    || "from".

    || t.Owner

    || '.'

    || t.table_name);

    END;

    END LOOP;

    ------------------------------------------------------------------------------------------------------------------------

    FORALL i IN 1.v_nttab. COUNTY

    INSERT INTO dynamic_counts (t_owner,

    t_table_name,

    t_column_name,

    fnd_govids)

    VALUES (v_nttab (i) .t_owner,

    v_nttab (i) .t_table_name,

    v_nttab (i) .t_column_name,

    v_nttab (i) .fnd_govids);

    COMMIT;

    END;

    /

    Are you sure that you are connected to the database to the same user with both clients?

  • Command-line installation or upgrade of oracle database

    Hi all

    Just a question,
    OPERATING SYSTEM; OUL5x64 without x window

    Is it possible to install or upgrade the database using command line
    NO X-WINDOWS?
    or if you know any docs on this issue, please provide a link.
    Thanks in advance.

    It is not possible.
    Even a silent installation requires X-Windows.
    It is also not a problem as X-Windows has always been required.

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • Sql XE over procedures run command line

    Greetings experts,
    I am trying to familiarize themselves with the command-line of XE and PL/SQL procedures, so what I do, I wrote a simple script that creates a procedure that prints its input value. Then I compile and run it via the command line.

    The following is the script (small_proc.sql):
    create or replace procedure sproc (printthis in number) is
    
    begin
    
    dbms_output.put_line('the value is' || printthis);
    
    end;
    /
    Question:
    1. I compile the script by:
    @small_proc
    then I run:
    run sproc (4);
    It is said that the procedure is carried out, but it's not printing anything (I think that "the value is 4").
    Something wrong with my code or my step?

    2. How can I change the path environment so that I can't copy the script in the bin every time
    I want to run it?

    3. How can I check environment path in this command line?

    Forgive my ignorance.
    Kind regards
    Valerie

    Hi, you have to sent in SQL * more:

    Set serveroutput on;

    exec sproc (4);

    Roberto.

  • Command line to deploy the project database in offline mode

    Y at - it a there command-line tool that will allow me to deploy database objects that I defined in a project database offline in a target database?

    I want to integrate continues an Oracle DB so I will need to:

    • Compare a target DB with DB objects defined in a project database offline
    • Generate a DIFF of this comparison script
    • Run the DIFF script on the target DB

    My goal is to automate these steps through some sort of command line tool.

    No data is involved. Just DB objects like tables (structure only), types, procedures, etc.

    On the past (2011) they said it was not possible (https://community.oracle.com/message/9840162)

    If this is not possible, is there another continuously integrate Oracle DB of a predefined template? Something like DACPAC for MSSQL, but for Oracle DB?

    Thank you

    Rodrigo

    Sorry, maker of data does not provide a command line interface at this point

  • page apex_admin not display for the runtime environment and application deployment using command-line

    Hello

    I installed APEX 4.2.6 EPG on Windows 7 Professional (32 bit) with Intel Core i3 processor.  Oracle XE 11.2 Win-32 DB.

    All the installation steps followed according to the Installation guide for the Apex.  It is a fresh and new installation.

    img1.png

    Install the log shows below -.

    Thank you for the installation of Oracle Application Express.

    Oracle Application Express is installed in the APEX_040200 schema.

    SQL > SELECT DBMS_XDB. GETHTTPPORT FROM DUAL;

    GETHTTPPORT

    -----------

           8082

    I did only the installation of runtime using apxrtins.

    ' Step ' grant of privileges of connection "according to the document was smooth without any problems.

    SQL > ALTER SYSTEM SET JOB_QUEUE_PROCESSES = 20 scope = both;

    Modified system.

    SQL > ALTER SYSTEM SET SHARED_SERVERS = 5 SCOPE = BOTH;

    Modified system.

       

    I played "Creating a workspace manually" and met above question.  For installation of runtime, is this unnecessary step?  Or any other step I'm missing?  Help, please.

    Thank you and best regards,

    -Anand

    Hi Anand,

    anand_gp wrote:

    All the steps I did in my development environment and no problem following the steps.  And there is no question of the problem of the EPG or a bad image of loading because the other workspaces and applications out there are working well.  My question was, when I tried to copy an application via command line in an another 'new space and work with some new application ID', wheather my steps were correct?  If so, then why does not using the URL of the application.  And since it is in full flight development environment, where other workspace / applications work fine, how to connect to the new workspace I created using the command line?  If you look at my steps, I did provide any user name and password associated with this workspace all in creation.  When all this is going very well, so I will try in my new machine that has only run-time environment.

    Thank you

    -Anand

    I think you missed the validation part. You're going to make after the installation of the application as well as the addition of workspace

    commit;

    Hope that solves your problem.

    Kind regards

    Jitendra

  • Database does not command line connect

    I try to connect my database from command line

    c:\users\username > sqlplus orauser/mypassword

    It is to show the error

    ORA-12154: TNS: could not resolve the specified point connection

    But if I try to connect from Oracle Sql Developer, using the same user name and password

    It connect without any problems.

    If the entrance to the AMT is not correct then how Oracel Sql Developer connection to the DB?

    OS: windows 2008

    DB: Oracle 11.2.0.3.0

    My password combination was the culprit...

    I used the pass@123 password!

    So, it's in conflict with the TNS entries... I changed my password through SQL Dev, without use of @!  .

    Now I can access db via the command prompt.

    -------------------------------------------------------------------

    To accept my @! password combination,

    c:\ > sqlplus NomUtilisateur1

    Enter the password: "pass@123!"     -while asking for password I should enter password in quotation marks «»

    Thank you all...

  • How to unit test a suite of unix command line?

    I tried to run the Unix command line test unit via the sdcli command, but it get hooked forever. I use version 4.0.2. Is it possible to call the module of Oracle SQL developer of Unix environment test?
    Below the out is when I tried to run the command sdcli with bash command - x.

    ++ . sdcli-run UnitTest - suite-name DEMO - repo testdb - db testdb

    +++ . sqldeveloper

    +++ /opt/sqldeveloper/sqldeveloper.sh

    Please help me.

    Who doesn't look like the output of the linux shell?

    Here is what I get.

Maybe you are looking for

  • I have can´t move data from my Handy (Motorola) to my PC

    Original title: DI I have can´t move data from my Handy (Motorola) to my PC

  • How can I get my printer back online

    My printer is ready to print, but it says offline and can't seem to get it online

  • Jelly clipzip with a strange delay on the sansa

    I work on in the gym with my zip clip and locked up on me.  None of the buttons other than a reset would react by holding the power button for about 15 seconds. Now my clip zip fuels to the flower of sansa and stays there for 90 seconds about.  He th

  • Erasing the CD of music froma

    I looked at using the help and it displays information on how to delete things from a CD however, it says there is an option in the toolbar that says delete. When I tried to do several times that nothing was shown saying erased.

  • Question 8 update for Windows

    After I removed everything from my laptop Windows 8.1, I noticed that I was not able to make the updates correctly. Some of the questions would be looking for updates would take a lot of time, when I did the update it would be 0%, sometimes updates s