Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 13486
  • Last Modified:

AIX ksh 0403-057 Syntax error: `(' is not expected error???

howdy,

I am running the command below  on AIX, 5.3. its the oracle exp program.  Im pretty sure the syntax is correct.

exp scott/tiger file=test.dmp tables=(lsc_account)

instead of following my command as instructed. Its refusing with this lousy excuse

0403-057 Syntax error: `(' is not expected error

any ideas?

0
citywesthomes
Asked:
citywesthomes
1 Solution
 
sjm_eeCommented:
A quick search using google suggests that the round brackets are not required. Try it as follows:

exp scott/tiger file=test.dmp tables=lsc_account
0
 
tfewsterCommented:
You're missing a $ symbol; The ksh syntax to assign the output of a command to a variable is:
VARIABLE=$(command)        
or
VARIABLE=`command`
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now