10-07-2009
I don't have permissions to run sql_trace. Employee_id is the key field but it is not indexed.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi-
I am trying to achieve the following in a script so I can schedule it on a cron job. I am fairly new to the unix environment...
I have written a shell script that reads a flat file and loads the data into an Oracle table (Table1) via SQLLDR. This Works fine. Then, I run a nested insert... (5 Replies)
Discussion started by: rajagavini
5 Replies
2. Programming
I have a stored procedure that is failing. The current query behind it is:
SELECT DISTINCT
<many, many values>
FROM
table1
LEFT OUTER JOIN table2 ON
(table2.key =
(select max (table2.key) from table2
where table2.key = table1.key) or
... (0 Replies)
Discussion started by: Elric of Grans
0 Replies
3. 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
4. Shell Programming and Scripting
Hi techies ..
This is my first posting hr ..
Am facing a serious performance problem in counting the number of lines in the file. The input files i get will be in some 10 to 15 Gb of size or even sometimes more ..and I will load it to db
I have used wc -l to confirm whether the loader... (14 Replies)
Discussion started by: rajesh_2383
14 Replies
5. Shell Programming and Scripting
Hi!
I would like to do a single connection to sqlplus and execute some querys.
Actually I do for every query one connection to database
i.e
echo 'select STATUS from v$instance;
exit' > $SQL_FILE
sqlplus user/pass@sid @$SQL_FILE > $SELECT_RESULT
echo 'select VERSION from v$instance;... (6 Replies)
Discussion started by: guif
6 Replies
6. UNIX for Advanced & Expert Users
Hi Experts:
I have a shell script that's kicked off by cron. Inside this shell script, I need to kick off two or more oracle sql scripts to process different groups of tables. And when both sql scripts are done, I will continue in the shell script to do other things like checking processing... (3 Replies)
Discussion started by: huasheng8
3 Replies
7. Programming
Greetings all,
Hopefully there is someone out there on this forum who can help with this Oracle SQL Developer issue I have.
Here is the code:
CREATE OR REPLACE VIEW
SALES_OVER_30000_WITH_TOTAL
AS
SELECT
E.FIRST_NAME || ' ' || E.LAST_NAME AS EMPLOYEE_NAME,
... (2 Replies)
Discussion started by: U_C_Dispatj
2 Replies
8. Solaris
Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi?
I'd like to avoid installing anything new.
If not, how to make vi more user-friendly?
thanks. (8 Replies)
Discussion started by: orange47
8 Replies
9. Shell Programming and Scripting
Hi,
I have a large number of input files with two columns of numbers.
For example:
83 1453
99 3255
99 8482
99 7372
83 175
I only wish to retain lines where the numbers fullfil two requirements. E.g:
=83
1000<=<=2000
To do this I use the following... (10 Replies)
Discussion started by: s052866
10 Replies
10. Shell Programming and Scripting
Hi All,
I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise.
Eg :
Select 'Query 1 output' from dual;
Select 'Query 2 output' from dual;
I want to... (3 Replies)
Discussion started by: Rokkesh
3 Replies
LEARN ABOUT OSF1
semid_ds
semid_ds(4) Kernel Interfaces Manual semid_ds(4)
NAME
semid_ds - Defines a semaphore set
SYNOPSIS
#include <sys/sem.h>
struct semid_ds{ struct ipc_perm sem_perm; struct sem *sem_base; u_short sem_nsems; time_t sem_otime; time_t
sem_ctime; };
DESCRIPTION
The semid_ds structure defines a semaphore set associated with a semaphore ID. There is one semaphore set per semaphore ID.
A semaphore set is implemented as an array of sem_nsems semaphores, with sem_base pointing to the first semaphore in the set.
The IPC permissions for a semaphore set are implemented in a separate, but associated, ipc_perm structure.
A semaphore set is created indirectly via the semget() call. If semget() is called with a non-existent semaphore ID, the kernel allocates
a new semid_ds structure, initializes it, and returns the semaphore ID that is to be associated with the semaphore set.
FIELDS
The ipc_perm structure that defines permissions for semaphore operations. See NOTES. A pointer to the first semaphore in the set. Indi-
vidual semaphores are defined using the sem structure. See NOTES. The number of semaphores in the set. Each semaphore in the set is ref-
erenced by a unique integer. A semaphore number is sometimes referred to as sem_num, but this is not a field carried in any of the rele-
vant data structures. Semaphore numbers run sequentially from zero to sem_nsems-1. The time of the last semop() operation on the set.
The time of the last semctl() operation that changed a semaphore in the set.
NOTES
The sem_perm field identifies the associated ipc_perm structure that defines the permissions for operations on the semaphore set. The
ipc_perm structure (from the sys/ipc.h header file) is shown here.
struct ipc_perm {
ushort uid; /* owner's user id */
ushort gid; /* owner's group id */
ushort cuid; /* creator's user id */
ushort cgid; /* creator's group id */
ushort mode; /* access modes */
ushort seq; /* slot usage sequence number */
key_t key; /* key */ };
The mode field is a 9-bit field that contains the permissions for semaphore operations. The first three bits identify owner permissions;
the second three bits identify group permissions; and the last three bits identify other permissions. In each group, the first bit indi-
cates read permission; the second bit indicates write permission; and the third bit is not used.
Individual semaphores are implemented with the sem structure. The sem structure (from the sys/sem.h header file) is shown here:
struct sem { u_short semval; short sempid; u_short semncnt; u_short semzcnt; };
The sem fields are defined as follows: A nonnegative integer that is the current value of the semaphore. The process ID of the last
process to perform an operation on the semaphore.
The number of processes that are currently suspended while waiting for an operation to increment the current semval value. The num-
ber of processes that are currently suspended while waiting for semval to go to zero.
RELATED INFORMATION
Functions: semctl(2), semget(2), semop(2) delim off
semid_ds(4)