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!

unable to move tar file

894943Apr 11 2014 — edited Apr 12 2014

Hi

i am unable to move tar file one location another location.

-rw-r--r-- 1 oraebs2 dba 10565308335 Apr 11 04:28 usirvsprdebs01.appl.tar.gz

-rwxrwxrwx 1 oraebs2 dba  1749569317 Apr 11 04:29 usirvsprdebs01.comn.tar.gz

-rw-r--r-- 1 oraebs2 dba  8460437581 Apr 11 04:34 usirvsprdebs01.tech_st.tar.gz

-rw-r--r-- 1 oraebs2 dba  5539639958 Apr 11 04:37 usirvsprdedb01.RDBMSOH.tar.gz

-rw-r----- 1 oraebs2 dba  1643603654 Apr 11 04:38 vertex01.dbf.gz

-rw-r----- 1 oraebs2 dba  1745056464 Apr 11 04:39 vtxlink01.dbf.gz

-rw-r----- 1 oraebs2 dba   792705400 Apr 11 04:40 vtxlink02.dbf.gz

[oraebs2@usirvsdevebs06 data]$ pwd

/u02/EBSTWO/db/apps_st/data

below is the error.

[oraebs2@usirvsdevebs06 data]$ mv usirvsprdebs01.comn.tar.gz /u01/EBSTWO/apps/apps_st

mv: cannot create regular file `/u01/EBSTWO/apps/apps_st/usirvsprdebs01.comn.tar.gz': Permission denied

[oraebs2@usirvsdevebs06 data]$

regards

RAm

Comments

thatJeffSmith-Oracle

Good luck!

I would advise you to upgrade your SQL Developer first. Version 4.0.1 is quite old.

VGA

Hi Jeff,

Unfortunately this is not up to me. Company rules.

For every update we need to get in touch with the IT department and that takes ages.

Any hints/tips to help me with my task?

Regards,

George

BPeaslandDBA

This is not a SQL Dev question, but more a SQL question, the SQL language, not the SQL Dev product. This might be a better space for this question:

19:00 hours yesterday is midnight today minus 5 hours. So this gives me 19:00 yesterday: TRUNC(sysdate)-5/24 and an example is here:

SQL> SELECT to_char(sysdate,'MM/DD HH24:MI') AS curr_time,

  2  to_char(trunc(sysdate)-5/24,'MM/DD HH24:MI') as yesterday_1900

  3  FROM dual;

CURR_TIME  YESTERDAY_1

----------- -----------

10/10 09:26 10/09 19:00


that works because there are 24 hours in a day and 5 hours is 5/24.

If you want 23:59 more than 19:00 yesterday, you just add that much of a day. In this case, there are 1440 minutes in day and i want to add 1/1440:

SQL> SELECT to_char(sysdate,'MM/DD HH24:MI') AS curr_time,

  2  to_char(TRUNC(sysdate)-5/24,'MM/DD HH24:MI') AS yesterday_1900,

  3  to_char(TRUNC(sysdate)-5/24+1-1/1440,'MM/DD HH24:MI') AS today_1859

  4  from dual;

CURR_TIME   YESTERDAY_1 TODAY_1859

----------- ----------- -----------

10/10 09:31 10/09 19:00 10/10 18:59

Cheers,
Brian

thatJeffSmith-Oracle

Not on this forum. And if you post in on the forum you're not likely to get much help either, not without a lot more details. Like, what your table/data looks like. You should also try to post your best attempt at the SQL first. No one there is going to be motivated to write it for you.

As for your IT department - I don't want you to get in trouble with them. But, there is no installer here. Just grab the zip, unzip it to your desktop, and go. Otherwise you're on yesterday's tech, if yesterday was 2013.

VGA

Thanks a lot Jeff!

unknown-7404
This query will be added in a report that get's refreshed on a daily basis but at different hours so can't use sysdate - 1.

So use 'TRUNC(sysdate) - 1'.

If you need more help mark this thread ANSWERED and repost the question in the sql and pl/sql forum.

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

Post Details

Locked on May 10 2014
Added on Apr 11 2014
2 comments
1,379 views