Sponsored Content
Special Forums UNIX and Linux Applications linux sqlplus select results writes into file twice Post 302513003 by pludi on Tuesday 12th of April 2011 05:45:59 AM
Old 04-12-2011
Might be a very very Oracle centric solution, but why not use a database link?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

select count(*) in sqlplus into variable unix shell

Need to select count(*) from table to check for zero result in unix script (2 Replies)
Discussion started by: struggle
2 Replies

2. UNIX for Advanced & Expert Users

Set shell variables from SQLPLUS query results

Hi All, I needed to get the result of two sqlplus queris into shell variables. After days of looking for the ultimate solution to this problem.. i found this... sqlplus -s USER/PASS@DB <<EOF | awk '{if(NR==1) printf("%s ", $1); if(NR==2) printf("%s ", $1);}' | read VAR1 VAR2 set head off... (2 Replies)
Discussion started by: pranavagarwal
2 Replies

3. Shell Programming and Scripting

In a csh script, can I set a variable to the result of an SQLPLUS select query?

Can someone tell me why I'm getting error when I try to run this? #!/bin/csh -f source ~/.cshrc # set SQLPLUS = ${ORACLE_HOME}/bin/sqlplus # set count=`$SQLPLUS -s ${DB_LOGIN} << END select count(1) from put_groups where group_name='PC' and description='EOD_EVENT' and serial_number=1;... (7 Replies)
Discussion started by: gregrobinsonhd
7 Replies

4. Shell Programming and Scripting

sqlplus: could it be dirrected do not printout anything, beside results?

I try to prepare a sufficient function to execute a sql-statement, getting back ONLY retrieved results! What I can't figured out how to make the sqlplus not printing the 'Connected to ...', 'Disconnected from...' and the executed statements after 'SQL> '. I am under impression that having... (5 Replies)
Discussion started by: alex_5161
5 Replies

5. Shell Programming and Scripting

redirecting oracle sqlplus select query into file

So, I would like to run differen select queries on multiple databases.. I made a script wich I thought to be called something like.. ./script.sh sql_file_name out.log or to enter select statement in a command line.. (aix) and I did created some shell script wich is not working.. it... (6 Replies)
Discussion started by: bongo
6 Replies

6. UNIX for Advanced & Expert Users

SQLPlus Select with Grep

I m trying to grep 'select * from' from a script, but the problem is with the * ... I think its taking * as some special character ... when I try to do grep '*' test (test is my test file) its displaying * But when I am trying to do grep 'select * from' test its not showing anything... (2 Replies)
Discussion started by: RDR
2 Replies

7. Shell Programming and Scripting

iterating over results from sqlplus

hi all, i am writing a ksh script, i am logging into an oracle db via sqlplus and running a select statement but i dont know how i can store the results from the sql so i can iterate over it and do more operations over it. I dont want to write a stored procedure with a cursor since i need to... (2 Replies)
Discussion started by: cesarNZ
2 Replies

8. Shell Programming and Scripting

Connecting sqlplus from UNIX with multiple select statement

hi, i have a requirement where i need to connect sqlplus from unix and i am able to do so by following command: cust_count=`sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF set pagesize 0 set feedback off set verify off ... (1 Reply)
Discussion started by: lovelysethii
1 Replies

9. Shell Programming and Scripting

How to pass Variable from shell script to select query for SqlPlus?

echo "set echo off"; echo "set feedback off"; echo "set linesize 4000"; echo " set pagesize 0"; echo " set sqlprompt ''"; echo " set trimspool on"; Select statement is mentioned below echo "select res.ti_book_no from disney_ticket_history res where res.ti_status =${STATUS} and... (7 Replies)
Discussion started by: aroragaurav.84
7 Replies

10. Shell Programming and Scripting

SQLPLUS command with more than 1 select statement

Hi all, I'm using below code processId=`sqlplus -s ${sysuser}/${syspwd} <<CHK_PROCESS whenever sqlerror exit sql.sqlcode; set head off feedback off echo off pages 0 SELECT PROCESS_ID FROM LSHADMIN.DATA_DOMAIN WHERE DOMAIN_NAME = '${tabname}' ... (8 Replies)
Discussion started by: Pratiksha Mehra
8 Replies
Font::TTF::Utils(3pm)					User Contributed Perl Documentation				     Font::TTF::Utils(3pm)

NAME
Font::TTF::Utils - Utility functions to save fingers DESCRIPTION
Lots of useful functions to save my fingers, especially for trivial tables FUNCTIONS
The following functions are exported ($val, $pos) = TTF_Init_Fields ($str, $pos) Given a field description from the "DATA" section, creates an absolute entry in the fields associative array for the class TTF_Read_Fields($obj, $dat, $fields) Given a block of data large enough to account for all the fields in a table, processes the data block to convert to the values in the objects instance variables by name based on the list in the "DATA" block which has been run through "TTF_Init_Fields" TTF_Unpack($fmt, $dat) A TrueType types equivalent of Perls "unpack" function. Thus $fmt consists of type followed by an optional number of elements to read including *. The type may be one of: c BYTE C CHAR f FIXED F F2DOT14 l LONG L ULONG s SHORT S USHORT v Version number (FIXED) Note that "FUNIT", "FWORD" and "UFWORD" are not data types but units. Returns array of scalar (first element) depending on context $dat = TTF_Out_Fields($obj, $fields, $len) Given the fields table from "TTF_Init_Fields" writes out the instance variables from the object to the filehandle in TTF binary form. $dat = TTF_Pack($fmt, @data) The TrueType equivalent to Perl's "pack" function. See details of "TTF_Unpack" for how to work the $fmt string. ($num, $range, $select, $shift) = TTF_bininfo($num) Calculates binary search information from a number of elements TTF_word_utf8($str) Returns the UTF8 form of the 16 bit string, assumed to be in big endian order, including surrogate handling TTF_utf8_word($str) Returns the 16-bit form in big endian order of the UTF 8 string, including surrogate handling to Unicode. XML_hexdump($context, $dat) Dumps out the given data as a sequence of <data> blocks each 16 bytes wide XML_outhints Converts a binary string of hinting code into a textual representation make_circle($f, $cmap, [$dia, $sb, $opts]) Adds a dotted circle to a font. This function is very configurable. The parameters passed in are: $f Font to work with. This is required. $cmap A cmap table (not the 'val' sub-element of a cmap) to add the glyph too. Optional. $dia Optional diameter for the main circle. Defaults to 80% em $sb Side bearing. The left and right side-bearings are always the same. This value defaults to 10% em. There are various options to control all sorts of interesting aspects of the circle numDots Number of dots in the circle numPoints Number of curve points to use to create each dot uid Unicode reference to store this glyph under in the cmap. Defaults to 0x25CC pname Postscript name to give the glyph. Defaults to uni25CC. -dRadius Radius of each dot. BUGS
No known bugs AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.10.1 2009-01-29 Font::TTF::Utils(3pm)
All times are GMT -4. The time now is 05:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy