Where its not possible to use a variable (&&var) in SQL*PLUS ?
SQL*Plus Command Reference - DEFINE
Whenever you run a stored query or script, SQL*Plus substitutes the value of variable for each substitution variable referencing variable (in the form &variable or &&variable)
The question is which are the limits of this. Can eg even be between a 'STR&&varING' passed as parameter to some function? Or as parameter I can pass only a single variable and there isnt such auto-casting level ?
I have created DBCA Scripts to batch create a DB. So I want inside these scripts to replace the DBNAME with a variable. So I can create different DBS with these prescriptions from an API tool.
E.g here there are 6 different scenarios where I might need to pass the variable. I dont know
1. On which of the bellow scenarios I can inject the &&var
2. On which I cant and thus have to create a 2nd VAR to inject the 1st one
3. Which dont accept variables at all - but only static text
@D:\app\admin\DBNAMEY\scripts\CreateDB.sql
spool D:\app\admin\DBNAMEY\scripts\CreateDB.log append
startup nomount pfile="D:\app\admin\DBNAMEY\scripts\init.ora";
CREATE DATABASE "DBNAMEY"
DATAFILE 'D:\app\oradata\DBNAMEY\system01.dbf' SIZE ...
GROUP 2 ('D:\app\oradata\DBNAMEY\redo02.log') SIZE 51200K,
I may not start testing the scripts 6 times fearing corrupting my Workstation on half executed scripts.
GoodfireGeorge wrote:
SQL*Plus Command Reference - DEFINE
Whenever you run a stored query or script, SQL*Plus substitutes the value of variable for each substitution variable referencing variable (in the form &variable or &&variable)
The question is which are the limits of this. Can eg even be between a 'STR&&varING' passed as parameter to some function? Or as parameter I can pass only a single variable and there isnt such auto-casting level ?
I have created DBCA Scripts to batch create a DB. So I want inside these scripts to replace the DBNAME with a variable. So I can create different DBS with these prescriptions from an API tool.
E.g here there are 6 different scenarios where I might need to pass the variable. I dont know
1. On which of the bellow scenarios I can inject the &&var
2. On which I cant and thus have to create a 2nd VAR to inject the 1st one
3. Which dont accept variables at all - but only static text
@D:\app\admin\DBNAMEY\scripts\CreateDB.sql
spool D:\app\admin\DBNAMEY\scripts\CreateDB.log append
startup nomount pfile="D:\app\admin\DBNAMEY\scripts\init.ora";
CREATE DATABASE "DBNAMEY"
DATAFILE 'D:\app\oradata\DBNAMEY\system01.dbf' SIZE ...
GROUP 2 ('D:\app\oradata\DBNAMEY\redo02.log') SIZE 51200K,
I may not start testing the scripts 6 times fearing corrupting my Workstation on half executed scripts.
If you can't test because you are afraid the test might fail, you need to address that issue first. No one on the web is going to give you iron-clad assurance that some code you write is going to work exactly as you expect.
Your script is trying to create a database? What's the worst thing that can happen if it doesn't work? Do you know how to manually dis-mantle whatever your script does? If not, you need to learn. The knowledge you will gain from that exercise will go a long way to improving your understanding of how these things interrelate.
Similar Messages
-
i have american account but i just now have 0.61$ and i have another gift card from uk.i want to use it but itunes said i have to change my country and its not possible before i spend all my money.my question is how i can spend a 0.61$ ?
If you are now in the UK then you can try contacting iTunes support and see if they can remove the balance from your account : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
-
I guess its not possible to have a scrollable alert
I often have a lot of text returned from the server but is often to big for the Alert, I guess its not possible to have a scrollable alert?
I guess I'll just have to use a popupGoodfireGeorge wrote:
SQL*Plus Command Reference - DEFINE
Whenever you run a stored query or script, SQL*Plus substitutes the value of variable for each substitution variable referencing variable (in the form &variable or &&variable)
The question is which are the limits of this. Can eg even be between a 'STR&&varING' passed as parameter to some function? Or as parameter I can pass only a single variable and there isnt such auto-casting level ?
I have created DBCA Scripts to batch create a DB. So I want inside these scripts to replace the DBNAME with a variable. So I can create different DBS with these prescriptions from an API tool.
E.g here there are 6 different scenarios where I might need to pass the variable. I dont know
1. On which of the bellow scenarios I can inject the &&var
2. On which I cant and thus have to create a 2nd VAR to inject the 1st one
3. Which dont accept variables at all - but only static text
@D:\app\admin\DBNAMEY\scripts\CreateDB.sql
spool D:\app\admin\DBNAMEY\scripts\CreateDB.log append
startup nomount pfile="D:\app\admin\DBNAMEY\scripts\init.ora";
CREATE DATABASE "DBNAMEY"
DATAFILE 'D:\app\oradata\DBNAMEY\system01.dbf' SIZE ...
GROUP 2 ('D:\app\oradata\DBNAMEY\redo02.log') SIZE 51200K,
I may not start testing the scripts 6 times fearing corrupting my Workstation on half executed scripts.
If you can't test because you are afraid the test might fail, you need to address that issue first. No one on the web is going to give you iron-clad assurance that some code you write is going to work exactly as you expect.
Your script is trying to create a database? What's the worst thing that can happen if it doesn't work? Do you know how to manually dis-mantle whatever your script does? If not, you need to learn. The knowledge you will gain from that exercise will go a long way to improving your understanding of how these things interrelate. -
I'm not able to send emails with mail.ru. Receiving is not a problem. Creating a mail is also not a problem and the mail will be stored at mail.ru as still to be send, only problem is its not possible to send. I noticed the buttons for sending change colour when used but they don't perform. What it is?
Don't know what changed, but all of a sudden able to send emails by mail.ru ...... sorry for bothering.
-
Before anyone says its not possible, as ive been told many times before, it is, I've done it before but it now asks me for a passcode and i can't guess it and don't know it, please help
if it keeps asking for the password again just write "0000", add the controller to your favorites, close bluetooth before asked for a password again, and the open bluetooth again
-
I have a problem with my iphone,after upgrade software ios 6.0.1, is not possible to use the wi-fi, used until now, because is not possible to have the login, i find this message " the requested URL was not found
You have to go to autherized iPhone agent.
-
can i change apple id to update a game? if its possible how i can change it? if its not possible why in this generation why its not possible?
You can't. All apps, and any other content from the store, are tied to the account that downloaded them, and they will remain tied to that account - so only the account that bought/downloaded an app can download updates to an app. Are you having problems downloading an app update via the app's own account ?
-
Is it possible to use repository variable in conditional formatting
Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
Is 'OracleBi..' a keyword or something like that....Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
Init blk is calling any procedure here with name OracleBI here...no any specific significance.
Hope this help
Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM -
Why it´s not possible to use IPhoto after the Maverick Update ?
Why it´s not possible to use IPhoto after the Maverick Update ?
I can not make a free update. It costs € 13.99 €.
I can not update it. -
hi sir and mam! i dont used my credit card to buy games in iTunes why they =
take my money in my credit card.now come thousand dollars,what games for 99=
.99$?i dont understan your apple store do?its not safety to used credit in =
apple store,very dangerousThese are user-to-user forums, you are not talking to Apple here. Have you checked the purchase history on your account (Store > View My Account on yoru computer's iTunes), and have you (or anyone who access to your devices) made in-app purchases in apps and/or have you taken out any subscriptions in apps ? If not then you can contact iTunes support via this page and ask for help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
my iphone was stolen but its not activated i used it as an ipod and pics that are very sentimental how can i track it down?
without having installed find my iphone and activated the free mobileme feature required for the find my iphone to work the only
way you can track it is by pretty large spyglass and shelock holmes pipe and hat -
Select statement - Where Condition not possible
Hi,
I am trying to extract data from sap standard table CFX_COL.I want extract based on a field which is of type string.I can see that in the table but when I code below I am getting error.Any other alterantives?
REPORT x.
TABLES:proj.
DATA: it_proj TYPE STANDARD TABLE OF proj.
DATA:wa_proj TYPE proj.
DATA: it_cfol TYPE STANDARD TABLE OF CFX_COL.
DATA:wa_cfol TYPE CFX_COL.
data:v_name type STRING.
PARAMETERS: p_pspid LIKE proj-pspid.
SELECT * FROM proj INTO CORRESPONDING FIELDS OF TABLE it_proj
WHERE pspid = p_pspid.
READ TABLE it_proj INTO wa_proj INDEX 1.
concatenate wa_proj-pspid '-' wa_proj-post1 into v_name.
select * from CFX_COL into CORRESPONDING FIELDS OF TABLE it_cfol
where name in v_name.
Error:The Field "NAME" is a long string , so it cannot be used in WHERE, ON or HAVING conditions.
Rgds
VaraHi Vara.
Select will not work if you are trying to search based on the name field as in the table CFX_COL it has data type String which basically is not content but a reference to a storage area and internally it is stored in a different format not searchable. Even , if you try to find the number of entries in the table you can not put any value in this field as it will not be available for input as it doesn't contain any value.
STRING: Character string with variable length This data type can only be used in types (data elements, structures, table types) and domains. In the Dictionary a length can be specified for this type (at least 256 characters). It may be used in database tables, however, only with restrictions. For a description of them refer to the documentation of the ABAP statement 'STRING' . In ABAP, this type is implemented as a reference to a storage area of variable size. As default for the output length 132 characters are proposed. You cannot attach search helps to components of this type.
http://help.sap.com/saphelp_40b/helpdata/en/cf/21f2e5446011d189700000e8322d00/content.htm
Regards
Apoorva -
Possible to use local variables in Calculation Manager
Hi,
I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
Thanks!
Regards
MatsHi,
I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
The usage of the variables in the forms is the same as before.
If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
Cheers,
Alp -
If I could cable a GoPro Hero HD camera to my iPhone, why would I be unable to tell my iPhone 4 to use it as an external video camera and video source? Or any USB camera for that matter?
Why is this not possible?
IanThere is no USB camera driver in iOS.
For security reasons, none can be added by third parties.
If they wanted you to use it, the manufacturer would write an app for that. -
10.1.3.1 issue: not possible to use default revision endpoint
My use case is the following.
Messages are sent from back-end systems to the BPEL engine, which start processes in BPEL.
Because I don't want the back-end systems to be aware of the version of the processes, I want to submit the request from the back-end system to the default end-point. This is not possible anymore in 10.1.3.1. It was possible in 10.1.2
Examples of options:
10.1.2
Default wsdl works: http://serverXXX:7777/orabpel/default/ProcessXXX/ProcessXXX?wsdl
Explicit version wsdl works: http://serverXXX:7777/orabpel/default/ProcessXXX/1.0/ProcessXXX?wsdl
Default end-point works: http://serverXXX:7777/orabpel/default/ProcessXXX
Expliciet version wsdl works:
http://serverXXX:7777/orabpel/default/ProcessXXX/1.0
In 10.1.3.1 the default end-point doesn't work anymore.
- If I have a new version for which the implementation has changed, but the interface has remained unchanged, I want to deploy a new version (e.g. 1.1).
- The 1.1 version will become the default
- I don't want to change the end-point configuration in my back-end systems
- If I deploy a changed process with the same version (again 1.0), I will not be able anymore to analyse the 1.0 versions of the previous implemementation of the process
I know that in an ideal world, the lookup of the end-point will be done dynamically using the WSDL, but my backend-systems are not that SOA aware.
Is there a solution for this?
Thanks,
Jan WillemMarc,
When requesting the default end-point in a browser, I get a page not found 404 error.
Your comment (BTW) is right on the spot. This is just my problem.
I want to deploy a new version, with a new number without changing the end-point configuration in my back-end applications.
I hoped that this is possible by using the default end-point (which was possible in 10.1.2), but it seems that this is not possible in 10.1.3.1.
Any other ideas?
Jan Willem
Maybe you are looking for
-
Determining Data transfer rate through modem in java
Hi, I want to write an application in java which will communicate with connected modem of the system and it will detect the data transfer rate. I want to know how much data is transferring(upload/download)through modem and in a specific time how much
-
My old computer has died. How can I retreive my itunes library and playlists to put on my new computer? I don't think it was saved in cloud. Does itunes have this info that I can get?
-
Sudden 0.2mb connection
Hey guys and gals. My problem has only been happening maybe a week and a half. I usually have between a 3mb to 5mb connection, this has nose dived to 0.2mb. I have tried resetting the hub both standard and to defaults. I have noticed my home hub also
-
Replace VM root repository with new root repository
The root repository on this environment was built with a root repository that was too small. I have created and added another (larger) repository to the environment and have moved all the VM clients into the new storage. What I would like to do now i
-
Iphone 5 connecting wifi, but no internet
Hello there. İ have a problem about conectivit to wifi. I have a wireless router at home. I connect my phone to it. Both galaxy s4 and iphone 5 (and some other laptops) connect easily. but when i try to search something on the internet, there is no i