Search Results

Search: Posts Made By: sandy162
2,563
Posted By zaxxon
I am not sure if I got the problem. Anyway, I...
I am not sure if I got the problem. Anyway, I try:

This is called redirection. echo produces output to Standard Out (stdout). It is redirected by the > and just creates the file if it does not...
2,563
Posted By Don Cragun
I added line numbers to your code for the...
I added line numbers to your code for the purposes of this discussion. Obviously, the line numbers cannot appear in the code that you run:
1 LOCK_FILE=${LOG_DIR}/${DBNAME}_MD.lock
2
3 # create...
2,563
Posted By Don Cragun
Sorry, but I must strenuously disagree with your...
Sorry, but I must strenuously disagree with your analysis and your rewrite of the code. If you look at the originally posted script (and my analysis of it in the message #3 in this thread) you will...
4,873
Posted By hanson44
Here is the other standard way to do it, to help...
Here is the other standard way to do it, to help understand better. It has one test clause, with -o separating the two conditions in the test:
if [ ${ERR_CNT} -ne 0 -o ${ERR_CNT1} -ne 0 ]

The...
4,873
Posted By joeyg
Perhaps this prior question/answer will help
Take a look at
https://www.unix.com/shell-programming-scripting/67041-if-statement.html

What shell are you running?
4,873
Posted By shekhar_4_u
Try syntax as below- if [ ${ERR_CNT} -ne 0...
Try syntax as below-

if [ ${ERR_CNT} -ne 0 ] || [ ${ERR_CNT1} -ne 0 ]
1,342
Posted By Yoda
First of all it seems really strange to me that...
First of all it seems really strange to me that you noticed path-name expansion (globbing) inside an SQL block. Maybe I'm missing something.

But you can disable path-name expansion (globbing) by...
1,342
Posted By spacebar
Not sure what you mean without seeing actual...
Not sure what you mean without seeing actual example because the '*' just tells oracle to return all columns, but try it like this:
param=

load_data_to_oracle ()
{...
2,961
Posted By Yoda
I didn't pay attention to this error before! ...
I didn't pay attention to this error before!
SQL*Loader-941: Error during describe of table T1_1DAY_STG
Please check and verify if you are running SQL Loader using a DB User who has sufficient...
2,961
Posted By Yoda
The ORA error: ORA-04043 suggest that the table...
The ORA error: ORA-04043 suggest that the table was not created successfully. So I guess the PL/SQL procedure didn't run successfully.

In PL/SQL, use semi-colon to define the end of line of code...
2,961
Posted By Yoda
Use a for loop to call the function: for param...
Use a for loop to call the function:
for param in 1day 7day 30day CTD
do
load_data_to_oracle
done
Inside the function pass the $param as argument:
@${CREATE_STAGE_SQL} "$param"
Use first...
2,339
Posted By ahamed101
Try this ####Main start here#### ...
Try this

####Main start here####
TXP_EXT_TABLE_1DAY_SQL=ext_table_1day.sql
TXP_EXT_TABLE_7DAY_SQL=ext_table_7day.sql

for i in 1DAY 7DAY
do
TXP=$( eval echo \${TXP_EXT_TABLE_${i}_SQL} )
...
2,339
Posted By ahamed101
You need to provide more details on what you...
You need to provide more details on what you want. We can't assume things.

--ahamed
1,506
Posted By DGPickett
Lets step back from where for a moment and...
Lets step back from where for a moment and describe how it starts (first two loops unrolled) and how it ends (when can you tell it is done and is there anything else to do).
846
Posted By gary_w
Stating what database and shell you are using...
Stating what database and shell you are using would help, but since that info is not here...

Here's a couple of ways. First, try putting put a TRIM( ) function call (or your system's equivalent)...
2,083
Posted By vbe
What I see is that you are using a lot of...
What I see is that you are using a lot of variables... Are they correctly set before you execute your shellscript?
Execute it in debug mode and see what is says...
2,083
Posted By Yoda
Source your file:/abc/etc/TESTDB in your script...
Source your file:/abc/etc/TESTDB in your script right before trying to connect to DB:
. /abc/etc/TESTDB
OR
source /abc/etc/TESTDB
1,535
Posted By Don Cragun
vi, emacs, ex, ed, or any other editor of your...
vi, emacs, ex, ed, or any other editor of your choice that was intended for use on systems other than Windows.
1,535
Posted By Corona688
Are you editing your scripts with Microsoft...
Are you editing your scripts with Microsoft Notepad?

This will fill the file with carriage returns at the end of each line, which most shells will take as literal characters. tr -d '\r' <...
1,535
Posted By Don Cragun
You haven't given us much to help with this, but...
You haven't given us much to help with this, but as a wild guess I'd say you edited your script with something that adds a carriage return before the newline at the end of each line. To verify, try:...
8,451
Posted By alex_5161
As I understand your description, you have no...
As I understand your description, you have no indication when responded field (or parameter) started and ended.
Thus, answer is simple: make that indication in your procedure responce!
#instead...
8,451
Posted By felipe.vinturin
Hi, Here I can see two options: 1. If...
Hi,

Here I can see two options:
1. If you have all the possible output values, you can use some IFs to validate;
2. Change the procedure to not use "NULL" values, but NULL strings...
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 10:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy