wsreg_query_set_location(3WSREG) Product Install Registry Library Functions wsreg_query_set_location(3WSREG)NAME
wsreg_query_set_location, wsreg_query_get_location - set or get the location of a query
cc [flag ...] file ...-lwsreg [library ...]
int wsreg_query_set_location(Wsreg_query *query, const char *location);
char *wsreg_query_get_location(Wsreg_query *query);
The wsreg_query_set_location() function sets the location specified by location in the query specified by query. If a location has already
been set in the specified query, the resources associated with the previously set location are released.
The wsreg_query_get_location() function gets the location string from the query specified by query.
The wsreg_query_set_location() function returns a non-zero value if the location was set correctly; otherwise 0 is returned.
The wsreg_query_get_location() function returns the location from the specified query structure. The resulting location string is not a
copy, so it must not be released by the caller.
The query identifies fields used to search for a specific component in the product install registry. By specifying the install location,
the component search is narrowed to all components in the product install registry that are installed in the same location.
Other fields can be specified in the same query to further narrow the search.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|MT-Level |Unsafe |
SEE ALSO wsreg_get(3WSREG), wsreg_initialize(3WSREG), wsreg_query_create(3WSREG), attributes(5)SunOS 5.10 22 Sep 2000 wsreg_query_set_location(3WSREG)
I have written a script which retrieves one value from the database.
It takes time for the sql query to get the desired output. So the query runs fine from TOAD or from UNIX console.
However if I put this in a script it doesn't work. The script is as below.
#! /bin/ksh... (2 Replies)
I am using SCO Unix, and inside have forte software which is similar with MySQL to store our product data. I am trying to print out serial number.
I use the following code and get result is like
Q>PRINT SERNUM WHERE ORDNUM=720385 USEKEY OE_ORDSER_KB
'T'erminal, 'P'rinter, or 'F'ile? T... (2 Replies)
I need to create a insert query for the below file
Fri Sep 4 06:25:51 2009
ACTION : 'CREATE INDEX S100S_DC.PLInsuranceReportRules_testI1 ON S100S_DC.PLInsuranceReportRules_test1(ENTITY_KEY)'
DATABASE USER: '/'
PRIVILEGE : SYSDBA
CLIENT USER: oracle
CLIENT TERMINAL: pts/3... (6 Replies)
I am using sqlplus query to get results in a csv format in unix. I am using ksh, and below is the query.
echo "select r.num|| ',' || p.path ||',"' || r.issue_description ||'",' ||p.timestamp from events r, messagepath p;">> $QUERY_FILE
sqlplus -s $LOGIN @ $QUERY_FILE>>$OUTFILE
... (2 Replies)
Please can someone help me with a query. Will the following query bring back 'Jolly Brewers'. My understanding is that it will bring back either 'Jolly' or 'Brewers' but not 'Jolly Brewers'....because of the pipe
egrep '(Jolly)|(Brewers)' Public_Houses
Please can someone confirm?
... (6 Replies)
could anyone help me?
I need to query output by compare dates from 2 table and i'm using a UNION query..and wanted to sort the output by date..
My query like this:
WHERE DATE < (to_date('122003','MMYYYY'))
UNION ... (2 Replies)
Can someone please give me a big help?
I'm trying to read the file below, which have the format:
Need to get the 4th value: 6559 and sum all and put it into a var:
... (2 Replies)
Discussion started by: letakeda
11. Post Here to Contact Site Administrators and Moderators
I have a query regarding searching the threads initiated by me.
Once i browse out from the page where i have started the query. i m not able to see the replies to my post later.
Is ther any tab where i can refer the threads started by me and the replies to it...at a later point.
... (3 Replies)
I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it queries the local /etc/passwd file first, and then if it doesn't find anything it would query LDAP... (2 Replies)
hey , i am using this code to store value of a sql query and and then use
it in other query but after some time , but it is not working. please help
val_1=$( sqlplus -s rte/rted2@rel76d2 << EOF
setting heading off
select max(stat_id) from cvt_stats;
nohup... (5 Replies)
I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
I am using check_mysql_query plugin in nagios to query database and get output. query is working fine but output which i am getting contain query. I want to remove query from output and give custom message which will be simple and understandable.
Can you help me here with any... (5 Replies)