Can i use alter command in script
type1=`sqlplus -s scott/tiger@home <<EOF1
spool file1.sql
alter table $v_tabname add(col1 number(10));
but select * from $v_tabname; is working in side the unix script
spool off;
EOF1`
alter table $v_tabname add(col1 number(10)); command is not working
in my unix script
please give your suggestions
This appears to be a *NIX script. If so, the dollar sign is used to display the contents of the variable. In your case, that would be $v_tabname. Have you defined that variable in your script? If so, does the table actually exist in the scott schema?
Other than that, can you define "not working".
John
Similar Messages
-
Can I use short commands in CCNA exam
Can I use short commands in CCNA exam
for example
“conf t” instead of “configure terminal”Sim questions are always answered by configuring
something!
The Exam Engine grades the running config, not the
startup config
Before exam day …
Practice as much as you can (real gear, simulators, sample
tests, read every configuration in books, repeat labs while in
class, etc.)
Use multiple sources for practice/review of configurations
Exam day …
Do what you can—partial credit!!!
Start with “show running-config”
There are no style points!
You can use the short version of commands on the exam. -
How can I use srvctl command line for change "Failover type" and "F method"
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.user10674190 wrote:
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
Also see
11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1] -
Close_Form('XXE_F501_SCRIPTING_START'); this is a command in IESCLPKG.PLL WHEN I AM USING THIS COMMAND MY SCRIPTING WINDOW IS GETTING CLOSED BUT THEN ONE ERROR IS COMMING ,KINDLY GIVE ME IDEA TO DEBUG THAT ERROR
if (param_value = 'CLOSE_SCRIPTING_WINDOW') then
--go_block('VIEW_IB');
-- SET_WINDOW_PROPERTY('SCRIPTING_WINDOW', WINDOW_STATE, MINIMIZE);
--Set_Window_Property('SCRIPTING_WINDOW', VISIBLE, PROPERTY_OFF);
--hide_window('SCRIPTING_WINDOW');
-- GO_BLOCK('CTRL');
fnd_message.set_string('1');--nimish
fnd_message.show;--nimish
--Close_Form('XXE_F501_SCRIPTING_START'); -- Commented for Nova
fnd_message.set_string('2');--nimish
fnd_message.show;--nimish
Scripting_Util.EndScript;
end if;
THIS IS THE PLL CODE KINDLY GIVE ME A CLEAR SOLUTION.First: you should get a new keyboard. Seems your shift-key is stuck.
Second: A header of a post is a header and not for a summary of your question
Third: This is the forum for the tool SQL Developer. Please mark this question as answered and post again in Forms
Forth: When you expect an answer, the least would be to include the errormessage and your forms version.
Regards
Marcus -
How can I use unix commands from oracle report
I have to use the following command from oracle reports.
In oracle forms we can use the HOST command but what about oracle reports2.5.
I have to email the attached file 100245.pdf from oracle reports to the given email id
uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]Hi,
It's because .bat (or .cmd) files are scripts and not executables and are interpreted using the command line executable - which is normally cmd.exe (although you can buy others).
So you need to call cmd.exe passing the bat file name as a parameter, something like
cmd.exe /c batchfilename
Without the /c you will never get a response.
However, this brings us to the bizarre conclusion that you are going to:
call cmd.exe (a shell interpreter)
to launch a batch file
that calls cygwin (another shell interpreter)
which then runs ls
When shouldn't that just be:
call cmd.exe to run the dir command
Or better yet, If you are just after a file name listing and you seem to understand Java stored procs, why not just write a JSP to list the contents of a directory? No problems with OS dependant commands, scripts and 3rd party interpreters. Plenty of examples of that out on the internet as well.
HTH
Chris -
Can I use Voice Commands (Speech) to control the DVD Player?
Problem: I want to insert a DVD in the the DVD drive and use voice commands to stop, pause, play, move forward, move back, and quit the DVD Player. Is this possible? If so how would I do this?
Thanks in advance for your help.
Jim MinorYou can create a speakable item. Use AppleScript Editor (Applications > Utilities > AppleScript Editor) to write the appropriate AppleScript to perform the desired action, and give it a name which is the command you want to speak. Then, make a subdirectory in the Speakable Items directory named "DVD Player" and copy your script to it. You should be able to speak the name of the script when DVD Player is in the foreground and have the script execute.
An example script (Play.scpt):
tell application "DVD Player"
play dvd
end tell
Other commands that the DVD Player application understands:
fast forward dvd
pause dvd
rewind dvd
stop dvd
step dvd
go to \[ main menu / title menu / subpicture menu / audio menu / angle menu / beginning of disc \]
press \[ up arrow key / down arrow key / left arrow key / right arrow key / enter key \]
open VIDEO_TS
open dvd video folder
play next chapter
play bookmark
play named bookmark
play video clip
play named video clip
exit clip mode
obscure cursor
eject dvd
The DVD Player application also has a bunch of properties related to chapters, titles, subtitles, etc. -
Can we use TCL commands in database triggers?
Hi,
GoodDay, This is Ramesh. Please let me know that, can we use TCL (Commit, Rollback & Savepoint) commands in our[b] DATABASE triggers? If so how..?
Regards,
Ramesh.Hi Ramesh, you're in the wrong forum; SQL Developer is a tool. Try SQL And PL/SQL...
Regards,
K. -
How can I use this command?
Why can't I use the command fdisk on Fedora8?
[root@localhost SCOTT]# fdisk -l
bash: fdisk: command not found[root@fedora ~]# ls /sbin/fdisk -l
-rwxr-xr-x 1 root root 94924 2007-10-16 16:48 /sbin/fdisk
[root@fedora ~]# /sbin/fdisk
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
[root@fedora ~]# rpm -qa | grep util-linux
util-linux-ng-2.13-3.fc8
[root@fedora ~]# -
Need Help Can i use Merge command along with exist function in oracle?
I am using Merge command to update the destination table and updating the rows which are already in the destination table.
But what i want is to delete the existing rows from the destination table and insert fresh rows instead of updating the existing rows in the destination table.
So can we use exist function to check the existing rows and delete them and use merge command to insert the rows in the table.You definitely need to do a DELETE then INSERT since MERGE will not delete rows, although I'm not really sure what that gets you since the net effect would be the same as a MERGE over the same pair of tables.
If you really want to do it this way, then I would likely do something like:
DELETE FROM target_table
WHERE (columns_you_would_match_on) IN (SELECT columns_you_would_match_on
FROM source_table
WHERE predicate_you_would_use_in_using);
INSERT INTO target_table (column_list)
SELECT column_list
FROM source_table
WHERE predicate_you_would_use_in_using;John -
Can I use the Command Line Interface on Unix?
Hi,
We use 9iAS on Unix. We want to use Discoverer Command Line Interface on unix to export the worksheet query result. Can anyone know how to do this? I couldn't find out the command similar to dis5usr.exe for windows version.
Thanks.
Richard QiuHello Richard
You can use the Discoverer EUL Command Line for Java utility. This was released with Discoverer 10g (9.0.4).
Please refer to the documentation for more information on how to use this command line interface: 'Oracle Discoverer EUL Command Line for Java User's Guide 10g (9.0.4), Part No. B10274_01 (PDF)' The document is available from OTN at http://otn.oracle.com/documentation/discoverer.html
Regards
Discoverer Product Management -
At CRS-1,how can i use show command with pipe | ?
HI,ALL
when I use show command with pipe on the CRS-1,the command invalid
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
^
% Invalid input detected at '^' marker.
========================================================
But Previously on the cisco 7609,I can use the show command
GZ-DM-SR-1.MAN.7609#show int | include line |err
Vlan1 is down, line protocol is down
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
Vlan11 is administratively down, line protocol is down
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
Vlan99 is down, line protocol is down
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resetsRP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |?
|
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | |?
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | ?
begin Begin with the line that matches
exclude Exclude lines that match
file Save the configuration
include Include lines that match
utility A set of common unix utilities
<cr>
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |
% Incomplete command.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | ?
begin Begin with the line that matches
exclude Exclude lines that match
file Save the configuration
include Include lines that match
utility A set of common unix utilities
<cr>
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |?
|
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | include er$
Thu Jan 15 22:36:24.120 GMT
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line
Thu Jan 15 22:37:05.013 GMT
Loopback0 is up, line protocol is up
Loopback1 is up, line protocol is up
Loopback6 is up, line protocol is up
Null0 is up, line protocol is up
POS0/0/0/0 is up, line protocol is up (APS not Configured )
POS0/0/1/0 is up, line protocol is up (APS not Configured )
TenGigE0/0/4/0 is up, line protocol is up -
Can I use at command line an import dimension using table interface?
Hi guys
I am using EPMA to load some dimensions using the table interface but I want to know if it is possible to lauch it using a command line?
RegardsHi John
I am facing a strange case, after migrate the developments that call the EPMA Batch Client uding ODI 11.1.1.7 to the test environment. I have various package that load data on the table interfaces
and in a next step call the epma batch client.
However when I execute the package, the log file is wrote. However the new customers are not loaded. But If I execute the command (Step on package) that call the epma batch client the log also
is wrote and the member is loaded.
Any suggestion about what can be happening and how I can solved.
Thanks in advance, -
Help! Can't use java command to execute application
I can compile using the javac command and that works fine. But then it can't seem to find the class that was just created.
I get this message:
"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"
Please help!!!
Thanks!The file is saved as the class name.
Here's what happens:
C:\jdk1.2.2\bin>javac HelloWorld.java
C:\jdk1.2.2\bin>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Here's the code that I'm trying to get to run:
The HelloWorld application program
public class HelloWorld
public static void main(String argv[])
System.out.println("Hello World!");
} -
I just can't use the java command...
The paths have been set and everything should work...
If I just type "java" (without the "") I get:
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
And if I type "java Oper" (It compiled normally and worked on my school computer) it gives me this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Oper
It works everywhere but on my computer...
Oh, and I have Java Builder 3 University Edition installed. When I use that to compile + run my program, it works perfectely... I just can't use "java" in command prompt. I have a Windows ME.
Another note, this may be related: I can't use certain Java applets on my computer, like the IRC applets for example. I tried it on both Netscape 7.01 and Internet Explorer 6.0.2800.1106. It displays the same kind of error, the Exception in thread "..." java.lang.NoClassDefFoundError: ... .
And I've already tried uninstalling + reinstalling. Any other suggestions?start -> run -> cmd
(if it doesn't open command prompt, then try command instead of cmd)
once you have reached command prompt, then you change to some empty directory where you would like to create java or class files. (use cd command for that)
once you have reached that directory, type: notepad Hello.java
(it should open notepad, and it should prompt you a question if you want to create file Hello.java (since it didn't excist) ... click yes)
in notepad type the following:class Hello {
public static void main(String[] args) {
System.out.println("Hello");
}once you have written that into notepad, then click File and choose Save from there.
now you may close your notepad.
now go back to that command prompt and type in command dir Hello.*
it should lis you all Hello.* files, and Hello.java should be one of these.
now, when you have seen that in your current directory a Hello.java does excist, you may type javac Hello.java
if it does compile whitout any errors then everything is OK so far.
type again dir Hello.*
now you should see two files, Hello.java and Hello.class
if you now saw that Hello.class was in the current directory, you may type the following command: java Hello
it should display a String "Hello" on your screen.
if it doesn't work, then you have problem with java not working from commandline (some classpaths are wrong or unset or smthng similar)
if you suspect that something doesn't work, then always test it with simplest task. -
Can't use/alter some of the AME presets
Hey,
I have a problem with the Media Encoder. In there I can't use or alter some of the presets (broadcast: MPEG2, MXF OP1a, Camera: HDV, DVD & Blu-ray: DVD). They show up but I can't twirl down the arrow. In Premiere Pro I can choose those settings (as shown in the 1st screenshot) but they won't come over to the Media Encoder.
I use the Creative Cloud and installed AFX and Audition before the Premiere Pro Family.See this:
http://forums.adobe.com/message/4401451
Maybe you are looking for
-
I just purchased an NEC PA271 27" LCD display for my Mac Pro. It's beautiful, clear and sharp, but there's one problem: it won't sleep. When I put the computer to sleep or shut it down, the monitor doesn't go into sleep mode. The blue LED on the fron
-
Trying to run my older Adobe Acrobat 8 Pro on Windows 7. Have original disc and S/N. Won't run...
-
Appropriate Linking and Folder Structure in BC
This might be an outdated question but I think if it is answered, it will help all newbies to BC. Not that I have an issue, but I just want to re-confirm something avoiding any broken links in the future by surprise. I explained this in the basic man
-
Webservice scenario with log services
Hi Experts, I have to invoke two webservices. First I have to call log service and next I have to call one normal webservice. Scenario: SOAP Client -> Call Log service -> Call normal webservice Using log service we can send the request and response i
-
I have 32 tabs open (how I don't know) but I can't get to those tabs to close them.
I'm not good using computers. For some reason, blank tabs started coming up in a fast stream and by the time I could stop them, quite a few were created. I tried to delete each tab and did up to 32 of them. I decided to shut down and reboot. When I c