execute sql commands in the browser
I use Oracle 10 g standard edition in the windows platform.I am getting SQL prompt, but I want to run the SQL commands in the browser. But I'm not.
Please help me!
You must start the iSQL * Plus service. Check starting the iSQL * Plus Application Server.
Tags: Database
Similar Questions
-
Execute sql commands using the @.
Hi all
Wish you all a happy new year 2011!
I have a sql batch. The command script references other scripts in other subdirectories. I tried to run in sqlplus.
My question is.
All of the referenced script must be in the current directory or... just the sql batch that make reference to all the other scripts to run using @...\batch.sql
Thanks in advance
NUHello
user32322435 wrote:
Thank you for everything that you replied...Here is the explanation for example...
The script name is my_script.sql located in C:\Scripts
my_script. SQL calls internally several other scripts like below
@Crash\Types.sql;
@Crash\TBL_CRASH\ALTER_TBL_CRASH. SQL
@Crash\TBL_CRASH\Update_TBL_CRASH_NEW_COLUMNS. SQL
@Crash\TBL_CRASH\Update_TBL_CRASH_TRIGGER. SQL@Crash\LOV_FARS\LOV_FARS_NHS_TYPE.sql;
@Crash\LOV_FARS\LOV_FARS_RTE_SIGNING_TYPE.sql;
@Crash\LOV_FARS\LOV_FARS_URBANRURAL_TYPE.sql;@Crash\CRASH_LOG\SEQUENCE. SQL;
@Crash\CRASH_LOG\LOG_TABLES. SQL;What is accident? What is a file in c:\scripts, that is, c:\scripts\crash?
If Yes, give the name of full path, like this
@C:\Scripts\Crash\Types.sql; @C:\Scripts\Crash\TBL_CRASH\ALTER_TBL_CRASH.SQL ...
Or, if you use substitution variables:
DEFINE crash = C:\Scripts\Crash @&Crash\Types.sql; @&Crash\TBL_CRASH\ALTER_TBL_CRASH.SQL ...
In this way, if you change the 'Crash' means, just change it in one place.
-
How to write the sql command in the batch file
Jin
I m using oracle 9i on windows. I want to know how I can write the sql on the command file command. I want to use a batch file to use the sql like shutdowm command & start command and any select command too.
so please tell how can I do?
thxsTried looking for what he superdba.
Can't connect to sqlplus using sys using a batch file
HTH
Aman... -
Execute SQL commands two one after another
Dear all,
I have these two lines of code that I need to run individually. Is there anyway that I can get them both to run simultaneously?
CREATE TABLE TBL_DATE AS SELECT DUAL FROM SYSDATE;
CREATE TABLE TBL_DATE_2HRS_AGO AS SELECT (SYSDATE - 2/24) FROM DUAL;
Perhaps inbed in a procedure or something? It should not be simultaneous, even if they are run one after the other.
Thank youStill not very clear to me, but maybe you are looking for sth. like
BEGIN EXECUTE IMMEDIATE 'CREATE TABLE TBL_DATE AS SELECT SYSDATE dt FROM DUAL'; EXECUTE IMMEDIATE 'CREATE TABLE TBL_DATE_2HRS_AGO AS SELECT (SYSDATE - 2/24) dt FROM DUAL'; END; /
?
-
ORA-00911 during addition of comment in the SQL command.
I work within the ORACLE Database Express Edition page "SQL Command".
The following query works fine for me:
SELECT *.
CUSTOMERS
As soon as I add comments, I get an error ORA-00911:
-It is a comment.
--
SELECT *.
CUSTOMERS
ORA-00911: invalid characterHello
Apex SQL worksheet don't like comments. What is reason you like add comments when you run the query?
You can trySELECT * /*This is a comment.*/ FROM CUSTOMERS
Kind regards
Jari -
Apex - dbms_job.submit (Oracle) in SQL commands
I have connected to oracle apex (version 4.2.5.00.08) at the URL https://apex.oracle.com/pls/apex/f?p=4550:1:0:
I am trying to execute the procedure of dbms_job.submit through SQL Workshop-> SQL commands)
The code is as shown below
*************************************************************************************************************************
declare
-jobno number;
jobno varchar2 (20);
Start
dbms_job. Submit (work = >: jobno,)
This = > ' START
emp_pack.remove_dept (16);
END;',
next_date = > trunc (sysdate + 1).
interval = > 'trunc(sysdate+1) '.
);
-dbms_output.put_line ('Job No. :'||: jobno);
commit;
dbms_output.put_line ('Job No. :'|| is jobno);
end;
*************************************************************************************************************************
The procedure of package I'm talking in the parameter 'WHAT' is defined as shown below
create or replace package emp_pack is
process remove_emp()emp_id in NUMBER)
process remove_dept()dept_id in NUMBER)
end emp_pack ;
create or replace package body emp_pack
is
process remove_emp()emp_id in NUMBER( )
is
begin
delete from EMP
where EMP .EmpNo = emp_id ;
end remove_emp;
process remove_dept()dept_id in NUMBER( )
is
begin
delete from dept
where Dept .DeptNo = dept_id ;
end remove_dept
end emp_pack ;
*************************************************************************************************************************
while trying to run the piece of code (I'm passing avlaue from 35 to the jobno to the RUN time parameter) is the error I get
ORA-06502: PL/SQL: digital or value error: character string buffer too small
I tried to know everything, I have, but have not been able to determine what is causing the error. Help, please
Super weird... I just ran the following on apex.oracle.com and got "1 row (s) deleted', not 'treated statement."
declare l_job int; begin /* dbms_job.submit( l_job, 'begin delete from emp; end;' ); */ rollback; end;
-
FLASHBACK Database: rman vs. sql command differences
I am new to Oracle and want to understand the difference and that is the correct way of rear turn signals to the database?
RMAN command vs SQL command on the use of FLASHBACK DATABASE
RMAN > run {}SQL> FLASHBACK DATABASE TO RESTORE POINT BEFORE_ONLINE_TEST; {CODE} Vs
flashback database to restore the BEFORE_TEST_320130313 point;
SQL ' alter database open resetlogs; }Referring this article on http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmflash.htm#BGBDCAFA it says we can use both RMAN and SQL command for database flashback. Questions: 1. Difference between using RMAN and SQL command on database flashback? 2. When to use RMAN or SQL on the database flashback? 3. Which is the Oracle recommended or best way ? Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM Edited by: Sivaprasad S on Mar 15, 2013 7:28 PM Edited by: Sivaprasad S on Mar 15, 2013 7:29 PM
So when you run your SQLPlus flashback, you get the following error:
ORA-38761: redo log sequence 1 in thread 1, incarnation 3 could not be found
This means so that the sequence 1 has probably been removed from the disk and is necessary.
When you run the RMAN command look at the log what RMAN:
* journal archived for thread 1 sequence 2 is already on the disc in the file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_2.3612.810054205*
* journal archived for thread 1 with sequence 3 is already on the disc in the file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_3.1588.810054205*So sequence 2 and 3 are already on record according to the above message.
Then you get this message:
channel dev_2: restoration of archives Journal
Archives journal thread = 1 sequence = 1So RMAN knows he needs 1 thus sequence and restores this newspaper archive she needs for recovery.
In a Word while running SQLPlus she communicate with RMAN and restore the log file for you, however with RMAN, it won't.
You can restore the newspaper archive manually, and then run in SQLPlus that will then work.
Published by: Freddie Essex on March 18, 2013 12:46
-
Maximum length of the SQL command
I created a MySQL database and a LabView 8.6 application that inserts data into the database using the SQL Toolbox. I have a problem very long character data insertion in a LONGTEXT field. I determined that the problem occurs when the SQL command is more than 1 048 574 characters or the length of a particular field exceeds 1 048 326 characters (cannot say who).
The error I get is "error-2147467259 occurred at NI_Database_API.lvlib:Conn Execute.vi. "Exception occurred in the Microsoft OLE DB provider for ODBC drivers: [MySQL] [ODBC 5.1 Driver] [mysqld - 5.1.35 - community] MySQL version disappeared in NI_Database_API.lvlib:Conn Execute.vi.
According to the MYSQL documentation, a LONGTEXT can 4294967295 characters, so length shouldn't be a problem. The documentation also indicates "the effective maximum length of LONGTEXT columns also depends on the maximum packet size that is configured in the client/server protocol and available memory", but I don't know how to configure the packet size in LabView.
I enclose the code example that reproduces the problem, although it is based on a special run table structure effectively. The table definition is included on the diagram.
This setting must be configured outside of LabVIEW (UDL or DSN).
You must configure the server and the client:
I found this link while searching on stackoverflow
http://dev.MySQL.com/doc/refman/5.1/en/packet-too-large.html
You may need to select/Configure a specific vendor (different) in order to set this variable.
-
Information on how to execute SQL on the CUCM himself queries please
Hello all,.
I need to run a SQL on the CUCM enumerate all directory numbers, their score and their external mask values.
I came across this snippet below earlier so I have a bit of an idea of how do but iw would be great to see some other examples of sql queries.
Any help is most appreciated.
Also, is there a document somewhere to tell me how to run these queries?
Thanks in advance
Concerning
Amanda
*******************************************************************************************************************************************************************************
Currently being moderated
04/05/2011 05:18 (in response to Joshua Royle)
Re: Y at - it a way to pull a CM report showing all phones with of turn on?
Helps you try if this the CLI SQL query execution, it must list all DN with CFA allowed the VM or a DN:
run sql select dnorpattern, cfadestination, cfavoicemailenabled CallForwardDynamic c, numplan n where c.fknumplan = n.pkid and (cfadestination! = "or cfavoicemailenabled 't =')
Hi Amanda
Basically, this is standard SQL, so that he would not bad at google 'informix instructions' select and do a bit of reading to get the basics. There are millions of permutations of requests so it comes to understand the syntax and then only by applying to the database in question. The only difference when running the commands in the CLI are:
-Precede you the standard informix with "execute sql" SQL statement
-You get no help from CUCM with syntax, so you might be well advised to use something which includes SQL a bit and he colorized you type, and then paste the commands resulting in the CUCM SSH window. I use an editor called JEdit, if you create a text file and save it as a file ending with .sql, it will highlight your syntax.
-Other programs are available that make reasonable syntactic (EQ SquirrelSQL) that are designed to query the DB directly, but you can't really query directly against the DB for security reasons. You will still need to copy and paste commands.
Now... to understand the DB you will need a reference describing all the tables, etc.. Here it is:
http://www.Cisco.com/en/us/products/SW/voicesw/ps556/products_programming_reference_guides_list.html
Choose your version of CUCM and download the document 'data definition '.
Some notes on the order:
run sql: is just the CLI command which tells the shell to perform the following as SQL.
Select: the SQL command to recover data
dnorpattern, cfadestination, cfavoicemailenabled: column names to retrieve
callforwarddynamic c, numplan n: the names of the two tables and abbreviations that you want to refer to them as
where c.fknumplan = n.pkid: This tells SQL to return values in the two tables where these fields match. In the data definition, you will see notes that c.fknumplan (i.e. the column fknumplan in table callforwarddynamic, as indicated by the prefix c.) refers to the PKID column in the area of the numplan. It is a type of join in the very standard DB CCM.
and ("cfadestination! =" or cfavoicemailenabled = "t"): another clause, fundamentally in this application that we want to see only the rows where cfadestination is not empty or cfavoicefmailenabled has the value 't' for real).
Most of the tables are related in two ways in this database:
-a column "fk" prefix refers to the field of pkid (there is always only one field per table pkid) in the table following the prefix "fk". For example above fknumplan refers to the numplan, pkid field table. fkdevice refers to the machine table, pkid field.
-a prefiex of 'traditional knowledge' column usually refers to a table enum which is preceded by 'type '. It is a table that maps the numerical value in the field of 'traditional knowledge' into a string. An example would be tkmodel - it is the type of physical phone (e.g. as 7962) and mapped as the column and a table called typemodel model 'enum' in the table.
Concerning
Please note the useful messages...
-
Hi all
Hoping someone can provide some tips. I need to export all the records 'date' with dateb cdr'.
To do this, I started by ssh'ing in the pub and make a ' execute sql select auto * from tbl_billing_data where date (datetimestamporigination) between 'date' and 'date'
A large amount of data came on the screen, so I ran ' file list activelog.net/cm/cdr_repository/preserver/et a list of directories to date appeared. All directories of came from the "date", as if all the dates before that date have been removed. Is it possible that to run the sql command that he actually removed these records cdr or moved him somewhere else? Hoping that they are still usable, all advice appreciated.
Thank you very much
Erina
Hi Erina,
The sql queries that you mentioned will not remove or push files to another folder. You have a server billing for this cluster configuration? Please see the section ""Troubleshooting: CDR Files will not be transferred to the billing server ' from the following link "
https://supportforums.Cisco.com/document/55821/troubleshooting-CDR#Troub...
HTH
Manish
-
On the use of SQL * loader program pl/sql command
Is it possible to develop a PL/SQL program that calls SQL * Loader (sqlldr userid =...) command?
We want to package a process that loads data from a text file into a table, and we research it is possible to use SQL * Loader to the data loading process.
You can launch sqlldr like all other orders of operation. There are several methods of cooking OS command, as
1. external procedure PL/SQL: CHMOD FROM A PLSQL?
Johan's blog: how to call PL/SQL kernel32.dll.
2 Java Stored Procedure: Blog of Johan: using JAVA in PL/SQL - PART - I list files with timestamp , Blog of Johan: using JAVA in PL/SQL - PART - II operating system information obtaining
3. external PREPROCESSOR Table function: no response on java not call windows in oracle command
4. using DBMS_SCHEDULER,
job_type => 'executable' and
job_action => '/bin/sh' (may be)
-
creation of database using the SQL command * more
Hello
This isn't a matter of urgency.
I learn the Oracle DBA. I have installed Oracle 9.2 in my windows system. And I'm trying to create a database using the SQL command.
OracleVersion: 9.2
Windows XP operating system
I get the error like below when executing the CREATE DATABASE command.CREATE DATABASE suri USER SYS identified by manager USER system identified by surendra LOGFILE GROUP 1 ('F:\Oracle\oradata\suri\redo01.log') SIZE 100M, GROUP 2 ('F:\Oracle\oradata\suri\redo02.log') SIZE 100M, GROUP 3 ('F:\Oracle\oradata\suri\redo03.log') SIZE 100M MAXLOGFILES 5 MAXLOGMEMBERS 5 MAXLOGHISTORY 1 MAXDATAFILES 100 MAXINSTANCES 1 CHARACTER SET US7ASCII NATIONAL CHARACTER SET AL16UTF16 DATAFILE 'F:\Oracle\oradata\suri\system01.dbf' size 200M EXTENT MANAGEMENT LOCAL UNDO tablespace undots datafile 'F:\Oracle\oradata\suri\undots01.dbf' size 200M DEFAULT TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL
I have validated the syntax but not able to find where is the error.ERROR at line 16: ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE
Please let me know if you need more details.
Thanks in advance for your help.
Kind regards
SuriOracleVersion: 9.2
Why a so old version (and desupported)? In any case...
TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100 M EXTENT MANAGEMENT LOCAL default
.. try change DATAFILE with TEMPFILE.
-
Using WHERE command in the SQL property loader
Hi all
I hope that it will be a pretty simple question.
I'm trying to use the Loader to read within the confines of a SQL database test. There are many types of models that need to be tested, each containing a set of specific limits. I want to be able to retrieve the appropriate limits for the model of the product under test.
To do this, I have the model number of product available in a FileGlobal. The database contains a table containing information about limit test with an ID column "ModelNumber_Number."
I wrote the following SQL query to get there:
"SELECT * FROM TESTLIMITS WHERE ModelNumber_Number = + FileGlobals.ModelNumber.
However, it is where I am confused. I'm not sure the syntax to access a variable in the SQL command. I have the following error:
The multipart identifier "FileGlobals.ModelNumber" could not be bound.
Can someone please advise on how to do this?
Thank you very much
Cam.
Hello, I was able to resolve the problem by converting to a string.
"SELECT * FROM TESTLIMITS WHERE ModelNumber_Number ="+ str (FileGlobals.ModelNumber).
At soon Cam.
-
Open a command of the vi of high level for an executable
Hello everyone
I was wondering how you would open a command remotely for the first level vi in an executable?
I created a LabVIEW application and tested opening remote control when it is running as a result of labview full development - it all works very well. I'll just exploit > connect to remote control and enter the address of the server, the port (8000) and the name of vi in the format of ' My Project.lvproh/My Computer/main.vi ' path.
However, if I can build this application into an executable file that I don't seem to be able to open a remote panel - it may be that I'm just in the name of VI incorrectly.
with VI or VI = "main.vi" name name = "C:\builds\main.exe\main.vi" and the exe file. running, I get the error:
Connection to the server remote panel...
Asked that VI is not loaded in memory on the server computerBut I don't know how I would be.
The main.ini has the following configuration:
server.app.propertiesEnabled = True
Server.OLE.Enabled = True
Server.TCP.ACL = "0800000008000000"
Server.TCP.Enabled = True
Server.TCP.Paranoid = true
Server.TCP.port = 6363
server.tcp.serviceName =""
Server.VI.Access =""
server.vi.callsEnabled = True
server.vi.propertiesEnabled = True
WebServer.Enabled = True
WebServer.TcpAccess = "" + c * ' "
WebServer.ViAccess = "' + * '"
DebugServerEnabled = True
DebugServerWaitOnLaunch = FalseBoth machines have LabVIEW 2011 Profesional Development System SP1 so I don't think it's a matter of limited remote access license.
Any suggestions as to where I'm wrong would be very appreciated.
See you soon
John
It seems that you can actually use remote panels within an executable file.
The problem I had was that I had left the port of the web server for the panels of distance to the LabVIEW development environment. Which means that the main LabVIEW web server was in the path of the web server that was associated with my built application.
With web application server on a different port and the VI in memory (and the file in a directory/external library to the exe if this is not the top level VI), you just need to specify the name of VI such as main.vi.
Solved!
-
Customize the operator for the SQL command
With JDeveloper 12.1.3, I created a search form "Panel with ADF Query Table". After having specified the search parameters, the SQL that is subject to the MSSQL root command generates the following error message:
< oracle.adf.controller > < Utils > < buildFacesMessage > < ADF: addition of the following JSF error: incorrect syntax [FMWGEN] [SQLServer JDBC Driver] [SQL Server] close to ' |'. >
java.sql.SQLException: incorrect syntax [FMWGEN] [SQLServer JDBC Driver] [SQL Server] close to ' |'.
Here is the part of SQL code that is the question:
WHERE (((city AS (?) || '%')) AND (State AS (?) || '%') ) ) ) )
Since MSSQL does not accept the "|" as an operator is valid, an error message is generated. MSSQL expects the CONCAT function or operator ' + '. Is it possible and easy to configure JDeveloper for change the operator of ' | ' to the CONCAT function?
OK, your settings are looking as it should.
You have two options to work around the problem.
(1) use your own sql generator, as shown here http://www.jobinesh.com/2013/02/customizing-sql-builder-class.html
(2) modify the sql code generated for the START WITH operator generate the right sql for sql server code. For this, you can override the method getViewCriteriaItem() as shown here https://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
Timo
Maybe you are looking for
-
Is there a way to download firefox for a USB key without the installation program, so I can install it on more than one PC?We use Oracle Forms in the House. No internet connection because it is safe from outside.Internet Explorer works well, if we wa
-
Lost restore images...
I lost my HP Netbook restore images skillfully and now I want to remove Linux and using the machine as a WIndows computer again. Is there a way I can get these images of HP? I would just buy a copy of Windows Starter, but I can't find a source, and
-
HP Pavilion dv7 laptop: memory
can I use: 16 GB memory DDR3 1600 (PC3 12800) latency Cas 9 speed (2 x 8G)Schedule 9-9-9-28 voltage 1.5VMulti-channel Kit Dual Channel Kit in this laptop?
-
The Play memories home calendar
I am using Play memories home of organizer for ALL my images, and I have a lot of images that are scanned slides from many years ago. These images appear on the display of the calendar in PMH that day, that they were responsible, and I will try to fi
-
Hello friends I would like to know if will be available spon CSC App iPad version Concerning N. Santana Sent by Cisco Support technique iPhone App