Search Results

Search: Posts Made By: priya001
34,794
Posted By priya001
I wanted to use the if statement.
I wanted to use the if statement.
34,794
Posted By priya001
How to ignore case(upper and lower) from user input?
Hi,
In my script it takes the input from the user. i.e. sys or system.
How can i make it case insensitive in my code.

if [ "$LEVEL" = "sys" ] || [ "$LEVEL" = "system" ]; then
echo...
2,494
Posted By priya001
Parallel export of all oracle DB schema.
In my Oracle db there are 4 schemas. All the username & passwords are stored in a text file. I am using a while loop to export all the schemas. It read the first line and doing the export. For all...
2,449
Posted By priya001
'[[: not found' error in if statement
Now my script is:
#!/bin/sh
echo "Enter the EXPORT_LEVEL:(sys/system or user)"
read EXPORT_LEVEL
if [[ $EXPORT_LEVEL = "user" ]]; then
echo "u r in if part"
else
echo "u r in else...
2,449
Posted By priya001
#!/bin/sh
#!/bin/sh
2,449
Posted By priya001
now it gives error: ./test2: [[: not found ...
now it gives error:
./test2: [[: not found

if [[ -d $DUMP && -d $LOG && "$PARALLEL_EXPORT" = "n" ]]; then

Is the above if statement is correct?
2,449
Posted By priya001
if statement with '&&' gives error
Hi, I'm using the && operator in if statement:

if [ -d $DUMP && -d $LOG && "$PARALLEL_EXPORT" = "n" ]; then

exp $UID/$PWD@$ORACLE_SID FILE=./DUMP/$TODAY$CONCAT_STR$USERNAME.dmp STATISTICS=NONE...
8,489
Posted By priya001
How to do Parallel Export in Oracle DB
I intend to do parallel export of my Oracle db (i.e all the schema in my db).

Currently I'm using the below exp command in my script:

exp $uid/$pwd@$ORACLE_SID FILE=./DUMP/$today$username.dmp...
2,977
Posted By priya001
Thanks.. What is code tag? I could not...
Thanks..

What is code tag?

I could not access the url for code tag.

https://www.unix.com/how-post-unix-li...code-tags.html

It is blocked here.
2,977
Posted By priya001
#!bin/sh if [ -z $ORACLE_HOME ] # True if the ...
#!bin/sh
if [ -z $ORACLE_HOME ] # True if the length of string is zero
then
echo "Enter the value of ORACLE_HOME"
read ORACLE_HOME
export $ORACLE_HOME
fi


here is my script but it...
2,977
Posted By priya001
How the user will provide the parameters for Oracle db connection in a shell script?
I'm new into unix.

My question: is possible to write a shell script which will ask for the
ORACLE_HOME, ORACLE_SID, USERNAME, PASSWORD to connect to Oracle db.

In generally we have to set...
9,733
Posted By priya001
Read record from the text file & assign those values to variables in the script
For eg: I have sample.txt file with 4 rows of record like:

user1|password1
user2|password2
user3|password3
user4|password4

The username and password is sepsrated by '|'

I want to get the...
1,616
Posted By priya001
the requirement is: It read the text file and...
the requirement is: It read the text file and take the first username and password, connect to db then do the export. And this process will continue for all the users in that text file....
1,616
Posted By priya001
all the objects of the schema.
all the objects of the schema.
1,616
Posted By priya001
Read the text file and connect to DB then export the DB
hi, i'm new to shell scripting.

I have a text file(sample.txt). It contains the different username & password for different users of oracle db.
.txt content
user1|password1
user2|password2...
Showing results 1 to 15 of 15

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