Skip to Main Content

Infrastructure Software

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!

export `dirname $0` does not return value

592815Jan 31 2014 — edited Feb 2 2014

Friends,

I have a sheel script  that works well.

Recent days, it does not work. Per debug, export PLOC=`dirname $0` does not return a value.

I run script as bush shell in  Oracle Linux Server release 5.10 Red Hat Enterprise Linux Server release 5.10 (Tikanga)

I try to PLOC=`dirname -- $0` or PLOC=`dirname BASH_ARGV[0]` or PLOC=`dirname {BASH_ARGV[0]}` But all of changes does not work.

How do we get a value from dirname?

Thanks so much

newdba

Comments

Oyvind Isene

The first statement for declaring the package is not really relevant, or am I missing something? Anyway, I did this in latest version of SQL Developer against an 11.2.0.4 database without getting any errors:

create or replace type user1_type
AS OBJECT ( DEMO VARCHAR2(3)) ;
/

create table nobeer
( col1 user1_type ) ;

SELECT * FROM NOBEER ;

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 2 2014
Added on Jan 31 2014
3 comments
2,929 views