Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

ASE157 - Permission issue with BCP out under Solaris

$
0
0

With ASE15.7 SP60 on Solaris10 u11, when data is bulk copied out using Sybase’s bcp utility, the output file generated is having permissions Read/Write for the owner and Read for the group and no permissions for others even if the umask specifies different permissions.

 

sybase15@server:/sybdata2/backup
!> umask
0022

 

If I try to create a file, I get the expected file permissions:

 

sybase15@server:/sybdata2/backup

!> touch test

 

sybase15@server:/sybdata2/backup

!> ls -l test

-rw-r--r--   1 sybase15 sybase         0 Mar 21 16:59 test

 

But bcpout grant different permissions:


sybase15@server:/sybdata2/backup
!> bcp db..table out /sybdata2/backup/table.bcp -Sservername -Uuser -Pxxx -c -t'(¨)' -r'(¯)\n'
Starting copy...

27 rows copied.
Clock Time (ms.): total = 16 Avg = 0 (1687.50 rows per sec.)

sybase15@server:/sybdata2/backup
!> ls -l
-rw-r----- 1 sybase15 sybase 3150 Mar 21 16:42 table.bcp

 

Any idea?


Viewing all articles
Browse latest Browse all 3587

Trending Articles