Search Results

Search: Posts Made By: sandy162
2,554
Posted By sandy162
Lock file creation
Hi,

Please let me know how these steps are creating a lock file using echo " ".



LOCK_FILE=${LOG_DIR}/${DBNAME}_MD.lock

# create lock file
if [ -f ${LOCK_FILE} ]
then
echo "Another...
3,166
Posted By sandy162
Escape special character
Hi,
How to use * in call to pl/sql block from shell script?
The line "select * from" is causing all files and directiores to show up in email notification but if I give all column names then it...
4,865
Posted By sandy162
thanks much..it worked..
thanks much..it worked..
4,865
Posted By sandy162
No such file or directory error
Hi,

After executing load_data.sh script , it completes the steps in script but give following error.Please let me know how to fix it.


./load_data.sh[68]: [: ']' missing
./load_data.sh[68]:...
1,342
Posted By sandy162
thanks, actually requirement is to call different...
thanks, actually requirement is to call different environment in same
shell script that is why I am giving path names here and using config file to keep all these parameter values.

----------...
1,342
Posted By sandy162
How to use special character in procedure call?
Hi,
I have following script which calls sql to create staging table like t1_rpt_1day_stg,t1_rpt_7day_stg

The following line has '*' and causing all data in directory to show up in email...
2,957
Posted By sandy162
I found fix..table names need to be upper case...
I found fix..table names need to be upper case and also instead of "${i} -- use ${i}
2,957
Posted By sandy162
Thanks.. But table does not exist and I am...
Thanks..
But table does not exist and I am trying to create table, if I hard code the pl/sql block "t1_1day_stg" ( instead of passing parameter &1.) it works



begin
execute immediate 'create...
2,957
Posted By sandy162
Thanks I have made changes but still got the same...
Thanks I have made changes but still got the same error.
I have updated the second post as well.
2,957
Posted By sandy162
I am getting following error when trying to...
I am getting following error when trying to create staging table.

SQL*Loader-941: Error during describe of table T1_1DAY_STG
ORA-04043: object T1_1DAY_STG does not exist

This is PL/SQL...
2,957
Posted By sandy162
Call procedure multiple time
Hi,

I have following script which calls sql to create staging table.How do I call load_data_to_oracle() multiple times so that it creates 4 staging as follows.


1.t1_rpt_1day_stg...
2,323
Posted By sandy162
Thanks much, it worked.
Thanks much, it worked.
2,323
Posted By sandy162
I need to get following values in my "for loop"...
I need to get following values in my "for loop" but if I use ${TXP_EXT_TABLE_${i}_SQL} then


TXP_EXT_TABLE_1DAY_SQL and TXP_EXT_TABLE_7DAY_SQL

I get error saying

...
2,323
Posted By sandy162
Pass parameter having another parameter in for loop
Hi,

I have following for loop , please let me know how to get ${TXP_EXT_TABLE_${i}_SQL} parameter with 1DAY and 7DAY values.


for i in 1DAY 7DAY
do
${NZSQL_DIR}/nzsql -h ${HOST} -time...
1,503
Posted By sandy162
Thanks for reply I pass table names to...
Thanks for reply
I pass table names to migrate_table function and in case when table_ids are matching
I just want to print the message "All tableid are processed" and run migrate_table function...
1,503
Posted By sandy162
thanks for reply, yes start_load() is a function...
thanks for reply, yes start_load() is a function definition, I am calling "get_table_id" function inside the "start_load" function.
There are error checks and other conditions , but thoe pieces are...
1,503
Posted By sandy162
call same function twice with different parameter
Hi,

I need to run start_load function for two tables.
Step 1: if HMAX_TBL_ID and GMAX_TBLI_D are same for tab_name1 then echo message "all table ids are processed"
Step 2: go back and call...
834
Posted By sandy162
Getting variable from a query
Hi,

I need to get a variable HMAX_TBL_ID and then use it in second select query. The first select statement returns few leading white spaces for ex : 12345
so when I run the script...
2,070
Posted By sandy162
How to setup Oracle connection inside shell script?
Hi,

We have Oracle Connection parameters set up in file name "TESTDB" at location /abc/etc.When I try to run my shell script it does not connect to Oracle database. Please let me know how "TESTDB"...
1,525
Posted By sandy162
thanks for reply. I have used Notepad++ editor....
thanks for reply. I have used Notepad++ editor. It does support shell scripting.
Which is the best editor for Shell Scripting?

Both of you are right , there are carriage returns in my scripts. I...
1,525
Posted By sandy162
Lock file creates with '?'
Hi,

I am trying to create a lock file with the following code but for some reason after file is created it has
wrong name "PASP?.lock??"

Please let us know how to get rid of these '??' from...
5,974
Posted By sandy162
this worked for me. if [ "$5" = "HAT_DIV" ];...
this worked for me.

if [ "$5" = "HAT_DIV" ]; then
DIV="HAT DIV";
fi


Thanks.
5,974
Posted By sandy162
Please find the updated information in my first...
Please find the updated information in my first post.
5,974
Posted By sandy162
[Solved] reassign value to variable
Hi,
Please let me know how to reassign value to a variable.The calling script is passing parameter as HAT_DIV but I like to pass HAT DIV ( two words) to DIV parameter.These are .ksh scripts.


#...
8,647
Posted By sandy162
Thanks for reply. I am open for changing calling...
Thanks for reply. I am open for changing calling script but have no idea what to change and which script to change.
Parameters which are being passed dont have quotes around


U run_convert.ksh...
Showing results 1 to 25 of 41

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