I am trying to write a bash script. I am able to do simple things like pass arguments, assign variables and echo the results. However, when I try to declare and array or anything a little more complicated I get
': not a valid identifier
Here is my code so far:
#!/bin/bash
echo start t... (7 Replies)
Hi ,
I am getting the following message when log into my unix account in sun solaris (version5.9)server.
-sh: ORACLE_HOME=/apps/oracle/product/10.2.0/client_1: is not an identifier
The ORACLE_HOME is set in .profile file.
Another thing is that SID is also set inside .profile like... (4 Replies)
Hi
I have already gone through this topic on this forum, but still i am getting same problem.
I am using solaris 10. my login shell is /usr/bash
i have got a script as below
/home/gyan> cat 3.cm
#!/usr/bin/ksh
export PROG_NAME=rpaa001
if i run this script as below , it works fine... (3 Replies)
Hi all,
Am intermittently getting the following errors on one of my databases.
Errors in file /oracle/HRD/saptrace/background/hrd_psp0_13943.trc:
ORA-27300: OS system dependent operation:fork failed with status: 12
ORA-27301: OS failure message: Not enough space
ORA-27302:... (1 Reply)
Hi Guys...
I am using the following codes in my script:
SID_L=`cat /var/opt/oracle/oratab|grep -v "^#"|cut -f1 -d: -s`
SID_VAR=$SID_L
for SID_RUN in $SID_VAR
do
ORACLE_HOME=`grep ^$SID_RUN /var/opt/oracle/oratab | \
awk -F: '{print $2}'` ;export ORACLE_HOME
export... (2 Replies)
Hi - I am trying to grep all "ORA" errors in a log files.I have to grep all ORA errors except one error for example ORA-01653.How can exclude that error in "grep" command?
In following "grep" command I want to exclude "ORA-01653" error
grep -i ORA alert.log >>/tmp/ora_errors.txt
... (7 Replies)
Hello
I am trying to use the following inside a shell script :
S_TAB=$(sqlplus -s / as sysdba <<EOF
set feedback off linesize 132 pages 0 echo off verify off heading off
select created
from v\$database;
select 'hurrah' from dual;
EOF)
Spews out lots of rubbish... (2 Replies)
Hi,
User claim that job is running slow from their end.
I DBA found in database the below errors in alert log file.
ORA-27603: Cell storage I/O error, I/O failed on disk o/192.168.10.3/RECO_DM01_CD_01_drm01 at offset 13335789568 for data length 1048576
ORA-27626: Exadata error: 2201 (IO... (2 Replies)
Discussion started by: Maddy123
2 Replies
LEARN ABOUT DEBIAN
sdrtable
ici::doc::pod3::sdrtable(3) ICI library functions ici::doc::pod3::sdrtable(3)NAME
sdrtable - Simple Data Recorder table management functions
SYNOPSIS
#include "sdr.h"
Object sdr_table_create (Sdr sdr, int rowSize, int rowCount);
int sdr_table_user_data_set (Sdr sdr, Object table, Address userData);
Address sdr_table_user_data (Sdr sdr, Object table);
int sdr_table_dimensions (Sdr sdr, Object table, int *rowSize,
int *rowCount);
int sdr_table_stage (Sdr sdr, Object table);
Address sdr_table_row (Sdr sdr, Object table,
unsigned int rowNbr);
int sdr_table_destroy (Sdr sdr, Object table);
DESCRIPTION
The SDR table functions manage table objects in the SDR. An SDR table comprises N rows of M bytes each, plus optionally one word of user
data (which is nominally the address of some other object in the SDR's heap space). When a table is created, the number of rows in the
table and the length of each row are specified; they remain fixed for the life of the table. The table functions merely maintain
information about the table structure and its location in the SDR and calculate row addresses; other SDR functions such as sdr_read() and
sdr_write() are used to read and write the contents of the table's rows. In particular, the format of the rows of a table is left entirely
up to the user.
Object sdr_table_create(Sdr sdr, int rowSize, int rowCount)
Creates a "self-delimited table", comprising rowCount rows of rowSize bytes each, in the heap space of the indicated SDR. Note that
the content of the table, a two-dimensional array, is a single SDR heap space object of size (rowCount x rowSize). Returns the address
of the new table on success, zero on any error.
void sdr_table_user_data_set(Sdr sdr, Object table, Address userData)
Sets the "user data" word of table to userData. Note that userData is nominally an Address but can in fact be any value that occupies
a single word. It is typically used to point to an SDR object that somehow characterizes the table as a whole, such as an SDR string
containing a name.
Address sdr_table_user_data(Sdr sdr, Object table)
Returns the value of the "user data" word of table, or zero on any error.
void sdr_table_dimensions(Sdr sdr, Object table, int *rowSize, int *rowCount)
Reports on the row size and row count of the indicated table, as specified when the table was created.
void sdr_table_stage(Sdr sdr, Object table)
Stages table so that the array it encapsulates may be updated; see the discussion of sdr_stage() in sdr(3). The effect of this
function is the same as:
sdr_stage(sdr, NULL, (Object) sdr_table_row(sdr, table, 0), 0)
Address sdr_table_row(Sdr sdr, Object table, unsigned int rowNbr)
Returns the address of the rowNbrth row of table, for use in reading or writing the content of this row; returns -1 on any error.
void sdr_table_destroy(Sdr sdr, Object table)
Destroys table, releasing all bytes of all rows and destroying the table structure itself. DO NOT use sdr_free() to destroy a table,
as this would leave the table's content allocated yet unreferenced.
SEE ALSO sdr(3), sdrlist(3), sdrstring(3)perl v5.14.2 2012-05-25 ici::doc::pod3::sdrtable(3)