Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot install the Order Entry schema, because the Perl code from the archive provided doesn't work

3633802Feb 7 2018 — edited Mar 28 2018

Hi everyone,

I have installed the most recent version of Oracle 12c. I need to install the OE schema, therefore I followed the steps mentioned on the official Oracle website:

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/comsc/installing-sample-schemas.html#GUID-A2C3DC59-CDA1-…

According to the readme.md file, I need to replace the occurrences of the token `__SUB__CWD__` with my current working directory.

I cannot do that. Trying to execute this code in Perl ( perl -p -i.bak -e 's#__SUB__CWD__#'$(pwd)'#g' *.sql */*.sql */*.dat ) results in the following errors :

1)Scalar found where operator expected at -e line 1, near "'s#__SUB__CWD__#'$(" (Missing operator before $(?)

2)Bareword found where operator expected at -e line 1, near "$(pwd"Missing operator before pwd?)

3)String found where operator expected at -e line 1, near ")'#g'" (Missing operator before '#g'? )

.....

syntax error at -e line 1, near "'s#__SUB__CWD__#'$(" Execution of -e aborted due to compillation errors

Untitled.png

Message was edited by: 196c1ae7-a612-4bda-b5a8-428ff480ff53

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2018
Added on Feb 7 2018
1 comment
888 views