03-17-2009
on your sql prompt type
sqlplus (then enter)
u will b asked for username ans Passwd to connect to the database on that server from which ur logging into
Happy Scripting !!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi gurus,
Being a newbie not sure whether iam asking the right question?
can we use oracle commands in unix for ex: to read a count on a table.
if so, what needs to be configured and etc..
any kind of help is appreciated.
Thanks
sish (6 Replies)
Discussion started by: sish78
6 Replies
2. Shell Programming and Scripting
Please tell me how i can use SQL in my unix scripts.
Please give examples.
I just want to start writing some scripts for my use.
Looking for ur cooperation.
thanks (2 Replies)
Discussion started by: Mohit623
2 Replies
3. Shell Programming and Scripting
when we are spooling query o/p to certain txt file,in that file how we can get headers in the query.(through unix shell scripting).
for exmple
q1="slect * from XXXXXX;";
sqlplus XXX/XXXX@XXXXX
spool XXXX.txt
$q1
spool off
in the text file i want the headers of the query.....
... (1 Reply)
Discussion started by: bhagya.puccha
1 Replies
4. Shell Programming and Scripting
How do I dynamically assign the below output to unix shell variables
so I can build a menu in a shell script?
Example:
var1 = 1 var2= SYSTEM
var3 = 2 var4= UNDOTBS1
and so on, then in the shell script I can use the variables to build a menu.
set serveroutput on
declare... (2 Replies)
Discussion started by: djehres
2 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I am new on here, I have a function in oracle that returns a specific value:
create or replace
PACKAGE BODY "CTC_ASDGET_SCHED" AS
FUNCTION FN_ASDSCHEDULE_GET
RETURN VARCHAR2
AS
BEGIN
DECLARE
ASDSchedule varchar2(6);
ASDComplete... (1 Reply)
Discussion started by: reptile
1 Replies
6. Shell Programming and Scripting
Hi ,
I used the below script to get the sql data into csv file using unix scripting.
I m getting the output into an output file but the output file is not displayed in a separe columns .
#!/bin/ksh
export FILE_PATH=/maav/home/xyz/abc/
rm $FILE_PATH/sample.csv
sqlplus -s... (2 Replies)
Discussion started by: Nareshp
2 Replies
7. Programming
If anyone is familiar with Oracle, there is a way to trace a file. Then there is is a script called tkprof that will generate a report that includes a rollup of some values. The problem with this script is that it only does the rollup properly if the query is finished. So I need something quick and... (2 Replies)
Discussion started by: guessingo
2 Replies
8. Shell Programming and Scripting
Hi All,
I am accessing Unix through putty (i.e. unix is installed on other server and i am accessing it remotely through putty). I am having SQL Server 2008 installed on my computer.
Now i want to access sql server via. unix.
Could some one please help me in this!!!
Thanks (2 Replies)
Discussion started by: preetpalkapoor
2 Replies
9. Shell Programming and Scripting
hi folks
am running the shell script below
#!/bin/bash
sqlplus 'scott@orcl/tiger'<<ENDSQL >> outputlogfile.csv
SET PAGES 0
SET HEAD ON
SET ECHO OFF
SET FEEDBACK OFF
SET LINESIZE 100
SET PAGESIZE 100
SET SERVEROUTPUT ON
--# Fire the query on database
select *
from employee;
... (2 Replies)
Discussion started by: coolboy98699
2 Replies
10. Shell Programming and Scripting
Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies
LEARN ABOUT PHP
sql-types-with-pdo_4d-and-php
SQL-TYPES-WITH-PDO_4D-AND-PHP(3) 1 SQL-TYPES-WITH-PDO_4D-AND-PHP(3)
SQL types with PDO_4D and PHP - SQL types with PDO_4D and PHP
Supported SQL types
+-----------------+--------------------------------------+---+
| Type SQL 4D | | |
| | | |
| | Equivalent 4D | |
| | | |
| | Note | |
| | | |
+-----------------+--------------------------------------+---+
| ALPHA_NUMERIC | | |
| | | |
| | TEXT | |
| | | |
| | | |
| | T{ VARCHAR | |
| | | |
| | TEXT | |
| | | |
| | | |
| | T{ TEXT | |
| | | |
| | TEXT | |
| | | |
| | | |
| | T{ TIMESTAMP | |
| | | |
| | DATE | |
| | | |
| | | |
| | T{ INTERVAL | |
| | | |
| | HOUR | |
| | | |
| | | |
| | T{ DURATION | |
| | | |
| | HOUR | |
| | | |
| | | |
| | T{ BOOLEAN | |
| | | |
| | BOOLEAN | |
| | | |
| | | |
| | T{ BIT | |
| | | |
| | BOOLEAN | |
| | | |
| | | |
| | T{ BYTE | |
| | | |
| | INT32 | |
| | | |
| | | |
| | T{ INT16 | |
| | | |
| | SMALLINT | |
| | | |
| | | |
| | T{ SMALLINT | |
| | | |
| | SMALLINT | |
| | | |
| | | |
| | T{ INT32 | |
| | | |
| | INT32 | |
| | | |
| | | |
| | T{ INT | |
| | | |
| | INT32 | |
| | | |
| | | |
| | T{ INT64 | |
| | | |
| | INT64 | |
| | | |
| | | |
| | T{ NUMERIC | |
| | | |
| | INT64 | |
| | | |
| | | |
| | T{ REAL | |
| | | |
| | REAL | |
| | | |
| | Unsupported (use VARCHAR conversion) | |
| | | |
| FLOAT | | |
| | | |
| | FLOAT | |
| | | |
| | Unsupported (use VARCHAR conversion) | |
| | | |
|DOUBLE PRECISION | | |
| | | |
| | FLOAT | |
| | | |
| | | |
| | T{ BLOB | |
| | | |
| | BLOB | |
| | | |
| | Must use a prepared statement, and | |
| | PDO::PARAM_LOB | |
| | | |
| BIT VARYING | | |
| | | |
| | BLOB | |
| | | |
| | Must use a prepared statement, and | |
| | PDO::PARAM_LOB | |
| | | |
| CLOB | | |
| | | |
| | TEXT | |
| | | |
| | | |
| | T{ PICTURE | |
| | | |
| | PICTURE | |
| | | |
| | Must use a prepared statement, and | |
| | PDO::PARAM_LOB | |
| | | |
+-----------------+--------------------------------------+---+
PHP Documentation Group SQL-TYPES-WITH-PDO_4D-AND-PHP(3)