Sponsored Content
Full Discussion: SQL*Plus under SFU
Top Forums Shell Programming and Scripting SQL*Plus under SFU Post 302416302 by Scott on Monday 26th of April 2010 04:56:24 AM
Old 04-26-2010
Hi.

I've tried (albeit on Linux, not Windows) but am unable to reproduce your problem.

Code:
/home/oracle/tmp > cat Test1
ret=`sqlplus -s / as sysdba <<_eof_
  set pagesize 0 linesize 200 feedback off
  select st from s\\\$test;
_eof_`

echo $ret


/home/oracle/tmp > ./Test1
c:\oracle\admin\blah1\blah2
/home/oracle/tmp >

Try a small change:

Code:
$ ret="$(sqlplus.exe -s "/ as sysdba" <<"_eof_"
set pagesize 0 linesize 200 feedback off
select value from v$parameter where name='user_dump_dest';
_eof_)"

$ echo "$ret"

 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Interix/MS Windows SFU

Hey guys, Any chance of getting a thread under 'Special Interest Topics' for Interix/SFU? This has to be one of the most poorly documented pieces of software floating around and it works great for interoperability of windows systems with the rest of your unix/linux network rather than having to... (3 Replies)
Discussion started by: chek
3 Replies

2. Windows & DOS: Issues & Discussions

Changing Directory Using SFU

Just installed SFU in my PC running under Windows XP Pro. Could someone tell us how to change directory and to its subdirectories either by Korn Shell or C Shell? I tried, cd f:\ or chdir f:\ but it didn't work. (1 Reply)
Discussion started by: ilak1008
1 Replies

3. Windows & DOS: Issues & Discussions

Running KSH script In SFU

I tried to run my ksh scripts in SFU and it always says "not found" as in the example below: $ .file /bin/ksh: .file: not found Did I miss something in the SFU Installation? (2 Replies)
Discussion started by: ilak1008
2 Replies

4. Windows & DOS: Issues & Discussions

FTP using SFU

I'm trying to ftp a file from Solaris to Windows XP Pro using SFU and the command that I used is as follows: ftp -n “host” << cmd user “loginname” “password” cd Directory ls filename error bye cmd If the filename does not exist, it shows the following output: Output to local-file:... (2 Replies)
Discussion started by: ilak1008
2 Replies

5. Shell Programming and Scripting

SFU awk help

hi guys i am trying using this awk command which works perfectly on unix awk '$1>=dt' dt="2007-12-03" filename but when i run same command for same file under SFU it does nothing simply prints the file ( just like cat command ) i am not getting why ? any way i used sed for same ( little... (5 Replies)
Discussion started by: zedex
5 Replies

6. HP-UX

SFU/NFS question

I am new in UNIX so pardon me if I am asking this question. We are using SFU in Windows to have a Windows folder mounted over UNIX. While we can see the mount, everytime i cd on the mounted folder (e.g. cd CONFIG) I always get Permission denies error. Does anyone know why I cannot go inside the... (11 Replies)
Discussion started by: Jolas
11 Replies

7. UNIX for Advanced & Expert Users

How to use ps command on SFU emulator ?

Hi all How can I use ps command on korn shell emulated by SFU on Windows Server ? All others commands work fine, but this one I don't know :confused: Many thanks ---------- Post updated at 11:28 AM ---------- Previous update was at 10:12 AM ---------- Ok, it works fine in fact, I'm... (0 Replies)
Discussion started by: madmat
0 Replies

8. HP-UX

SFU and NFS issues

Hi, I support a small lab of older HP UX 9 and 10 boxes. We have some older NT 4.0 machines at each UX box, with a old ZFS Server programs hosting two mounted directories. (Each UX and NT machine is on its own private network via crossover cable). Due to hardware failure/support EOL on NT, I have... (3 Replies)
Discussion started by: the spyder
3 Replies

9. Windows & DOS: Issues & Discussions

Empty folders with SFU

Hi all, i am currently setting my windows XP environment to use with Services for Unix (NFS Client) to mount my unix file system as a network drive. However, though i could mount the unix file directory successful, but the folder is empty (which is not). Why is this so? i have imported my unix... (6 Replies)
Discussion started by: lchunleo
6 Replies

10. UNIX for Beginners Questions & Answers

Tell me about PS command with SFU

Hi all, When I execute ps command with SFU (Microsoft Windows Services for UNIX), the result is returned as an empty line. Other commands will return correct results. How can I get the result of ps command correctly? Thank you. (2 Replies)
Discussion started by: tcx731
2 Replies
PAPI_set_cmp_granularity(3)					       PAPI					       PAPI_set_cmp_granularity(3)

NAME
PAPI_set_cmp_granularity - Set the default counting granularity for eventsets bound to the specified component. SYNOPSIS
Detailed Description @par C Prototype: int PAPI_set_cmp_granularity( int granularity, int cidx ); @param granularity one of the following constants as defined in the papi.h header file @arg PAPI_GRN_THR Count each individual thread @arg PAPI_GRN_PROC Count each individual process @arg PAPI_GRN_PROCG Count each individual process group @arg PAPI_GRN_SYS Count the current CPU @arg PAPI_GRN_SYS_CPU Count all CPUs individually @arg PAPI_GRN_MIN The finest available granularity @arg PAPI_GRN_MAX The coarsest available granularity @param cidx An integer identifier for a component. By convention, component 0 is always the cpu component. Return values: PAPI_OK PAPI_EINVAL One or more of the arguments is invalid. PAPI_ENOCMP The argument cidx is not a valid component. PAPI_set_cmp_granularity sets the default counting granularity for all new event sets, and requires an explicit component argument. Event sets that are already in existence are not affected. To change the granularity of an existing event set, please see PAPI_set_opt. The reader should note that the granularity of an event set affects only the mode in which the counter continues to run. Example: int ret; // Initialize the library ret = PAPI_library_init(PAPI_VER_CURRENT); if (ret > 0 && ret != PAPI_VER_CURRENT) { fprintf(stderr,"PAPI library version mismatch!0); exit(1); } if (ret < 0) handle_error(ret); // Set the default granularity for the cpu component ret = PAPI_set_cmp_granularity(PAPI_GRN_PROC, 0); if (ret != PAPI_OK) handle_error(ret); ret = PAPI_create_eventset(&EventSet); if (ret != PAPI_OK) handle_error(ret); * See Also: PAPI_set_granularity PAPI_set_domain PAPI_set_opt PAPI_get_opt Author Generated automatically by Doxygen for PAPI from the source code. Version 5.2.0.0 Tue Jun 17 2014 PAPI_set_cmp_granularity(3)
All times are GMT -4. The time now is 04:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy