Cannot execute setupview command in a view
Hi,
I created a view pointing to EMAIGC_11.1.1.7.0AS_GENERIC_120114
Then grabbed a transaction in the view and compiled the code, using
make clean build.
Later when I try to run 'setupview -config noagent' it fails saying command not found.
I created the above view using my globalid.
But the same command goes through fine if I create the view as a aime user.
Can anybody please explain what the issue is?
thanks,
Hi Andila, well you could just make your dynamic sql statement an insert statement based on your select. See example below
create column table test_table_1
"COL1" nvarchar(10),
"COL2" nvarchar(10)
CREATE PROCEDURE INSERT_P()
LANGUAGE SQLSCRIPT AS
sql_string NVARCHAR(2000) := '';
BEGIN
sql_string := 'insert into test_table_1 (select ''val1'', ''val2'' from dummy) ';
EXECUTE IMMEDIATE (:sql_string);
END;
call insert_p();
select * from test_table_1;
However you may want to investigate other options instead of using dynamic SQL as this is not a recommended approach. Less optimized compared to standard sql.
Peter
Similar Messages
-
Vbs script called from a service cannot execute certain commands
We have a service, running as domain admin user on Win Svr 2008 std ed, that must execute vb scripts. The scripts execute, but calls to SETX.exe using Shell.Run fail to set environment variables. However, SETX returns no errror
msg.
If I run the same script within a CMD window with elevated privilege (e.g. Administrator), the script works as expected and environment variables are set.
What is going on? File creation fails as well.
The call looks like this:
gnReturnCode= RunCmd("setx.exe UD_UPGRADING_RELEASE "True" /m",True)
Where RunCmd is as follows:
' Function: RunCmd( ByVal strCmd, ByVal bWait)
' desc: Execute a command string and wait for result if indicated
Function RunCmd( ByVal strCmd, ByVal bWait)
Dim nReturnCode, strWholeCmd
nReturnCode= 0
strWholeCmd= "%comspec% /c "&strCmd&" >"&gcsLogFile2
nReturnCode= goShell.Run(strWholeCmd,0,bWait)
WriteLog( "RunCmd("&strCmd&","&bWait&") returned "&nReturnCode)
RunCmd= nReturnCode
End Function
Mark Maddox Sr. Tech SpecialistI did the following and am providing comments on each:
Run setx.exe from a Command Prompt.
RESULT: This works and can be seen by new processses regardless of privilege provided they are done under the same credentialed user.
Run a really simple script from the Command Prompt, e.g. the one below, and check if it works.
Set oWshShell = CreateObject("WScript.Shell")
sCMD = "cmd /c setx.exe Test %time% /m"
wscript.echo "Error code=" & oWshShell.run(sCmd, 0, true)
RESULT: This works and result can be seen by new processes regardless of privilege provided they are done under the same credentialed user. My attempts to user another credentialed user failed with a permission to access reegistry path not
granted.
Run the same script as a scheduled task, using the same account as you use for your service, then check if it worked.
RESULT: Script ran, but only new processes with elevated privilege could see the change. New processes without elevated privilege could not see the change. I had to log out and log back in for new processes without elevated privilege
to pick up the change.
Run that script as a service, then check again if it worked.
RESULT: Script ran, but only new processes with elevated privilege could see the change. New processes without elevated privilege could not see the change. I had to log out and log back in for new processes without elevated privilege
to pick up the change.
Mark Maddox Sr. Tech Specialist
P.S. I also created an application that gets called after the the script has made environment variable changes. It broadcasts the WM_SETTINGCHANGE message. I did this in hopes that something would refresh in the Windows OS allowing non-privileged
users to see the change. It did not help. Here's the C++ line that I executed:
LRESULT error1 = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)
"Environment", SMTO_ABORTIFHUNG,
5000, &dwReturnValue); -
How to view previously executed sql commands?
Hi experts,
I want to view the sql commands executed in Oracle 8i before 3 or 4 hrs.That is i am asking to view the command history.Can any one help me in this weird situation?Anytype of suggestion were welcme..
Thanx in Advance,
SenthilYou can use LOG MINER utility to check the commands that has been executed.
Use v$log_history view to check the exact log sequence number of the redo log file, and there by you can use that log file with log miner.
Using this method you can't see the DQL commands that has been executed against the database, apart from this all other commands can be seen..
cheers
kumareshan -
Hi,
We have installed Solaris 10 on x86 platform. When we try to install any application with the command like
"./setup", it says command cannot execute.
Only those applications with setup.sh script files, we are able to run the installer.
Is there anything to be done in OS level in order to execute the setup files as "./setup"
or is there any other command to run instead of using "./setup"?
regards
Sundaresan.CHi
This probably means that the shell specified in the script is wrong.
Check that the shall following the "#!" on the first line either exists in the specified path. If there is no path, make sure that the shell is in your path.
Paul -
Data Federator: Insufficient memory : Operator 'HashJoin' cannot execute
Hi,
I'm using: SAP BusinessObjects Data Federator Designer XI 3.0 Service Pack 3 - 12.3.0.0 (Build 1011241842)
I have a virtual view on top of sql server 2007 and teradata. I am using a view on sql server 2007 that joins against several tables and querying a single table from Teradata.
When I try to query the view I get the error: [Data Federator Driver] [Server] Insufficient memory : Operator 'HashJoin' cannot execute because it cannot allocate the minimal number of memory pages. Please contact the system administrator to change system parameter settings. (0)
This happens when I try to query the view from data federator or from an odbc connection.
I tried playing with the configuration settings for core.queryEngine.hash.maxPartitions and
core.queryEngine.hashJoin.nbPartitions and nothing seemed to work in terms of changing/increasing the numbers. The help guide also gave no help: http://help.sap.com/businessobject/product_guides/boexi3SP3/en/xi3_sp3_df_userguide_en.pdf
I was using a very similiar query against a materialized view on Oracle and Teradata before and that worked. But I'd prefer not to have to materialize the view in Sql Server.
Any thoughts as to how this can be fixed?
Thanks,
Kerby<rant>The strange thing with this forum is no people, really no people, ever do anything to resolve their own problems, even though this forum has a search function, and sites with FAQs and assistance are floating around over the Internet. Why is a mystery, as nobody uses them, and most DBAs only know how to hit copy-and paste, to add to the clutter on OTN again.</rant>
The usual steps to troubleshoot an ora-1031 apply.
This means
- verify whether the local administrator is in the ora_dba group and sqlnet.authentication_services in sqlnet.ora has been set to (NTS)
- in absence of these, there should a password file be present in %ORACLE_HOME%\database, named pw%SID%.ora
These belong to the common documented requirements, and these requirements shouldn't be repeated everywhere.
Sybrand Bakker
Senior Oracle DBA
Experts: Those who do read documentation. -
Cannot execute Install for database ORACLE_HOME
Dear ALl,
EBS 11.5.9 with Windows 2003, during multi-node installation error.
log file
Oracle Applications Rapid Install Wizard Install log
>> Using Rapid Wizard Version : 11.5.9.21
>> Install session started : Fri Jul 25 17:41:05 GST 2008
>> Rapid Wizard source location : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz
>> Command Line arguments for this execution :
=================================================================
Install Session Information
Host Name : sysd.apps.com
Host Operating System : Windows 2000
User running Install : applmgr
=================================================================
InstUpgPanel - User chooses to Install Oracle Applications
NumNodesPanel - Multi-node Selected
SIDSeedPanel - The PROD database is set to PROD fresh install database
ProductPanel - The following are the selected Product Groups for instance PROD
Basic
E-Business Intelligence
Marketing
TeleSales
Field Sales
Order Management
Inventory Management
Purchasing
Discrete Manufacturing
Process Manufacturing
TeleService
Service Contracts
Project Costing
Project Billing
Financials
Human Resources
ProductPanel - The following are the selected Product for instance PROD
0
160
190
265
601
174
175
690
874
709
454
452
450
558
451
530
517
520
549
670
691
882
521
676
880
696
697
660
522
544
869
676
279
697
660
702
401
665
673
401
665
201
202
250
401
702
703
704
705
706
712
550
551
552
553
554
555
556
557
514
511
542
862
696
872
170
866
518
515
510
870
524
542
275
275
101
140
200
222
240
260
600
8400
8401
8450
8901
231
673
800
804
8301
8302
TerritoryPanel - The following are the selected settings for instance PROD
LanguagePanel - The following are the selections from the Language Panel:
US - American_English
US - American_English
US7ASCII
US7ASCII
AMERICA
MultiNodePanel - Selected nodes:
[Ljava.lang.String;@eddac
[Ljava.lang.String;@7b7565
[[Z@583cf4
QuickPanel - Empty Fields were encountered. Number of empty Fields:1
QuickPanel - The following are the selected top directories for instance PROD
e:\oracle e:\oracle e:\oracle f:\oracle f:\oracle f:\oracle applmgr password apps.com
QuickPanel - The following are the selected top directories for instance PROD
e:\oracle e:\oracle e:\oracle f:\oracle f:\oracle f:\oracle applmgr password apps.com
MountsPanel - The following are the mount points selected by the user for instance PROD
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
US7ASCII
US-ASCII
e:\oracle\prodcomn
e:\oracle\proddb\9.2.0
e:\oracle\prodora\8.0.6
e:\oracle\prodora\iAS
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
e:\oracle\prodcomn\java
e:\oracle\prodcomn\portal
e:\oracle\prodcomn\util\jre\1.1.8
e:\oracle\prodcomn\temp
applmgr
password
apps.com
C:\mksnt
C:\VC98
C:\java\jdk1.3.1
c:\Program Files\Oracle\Inventory
MountsPanel - The following are the mount points selected by the user for instance PROD
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
US7ASCII
US-ASCII
e:\oracle\prodcomn
e:\oracle\proddb\9.2.0
e:\oracle\prodora\8.0.6
e:\oracle\prodora\iAS
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
e:\oracle\prodcomn\java
e:\oracle\prodcomn\portal
e:\oracle\prodcomn\util\jre\1.1.8
e:\oracle\prodcomn\temp
applmgr
password
apps.com
C:\mksnt
C:\VC98
C:\java\jdk1.3.1
c:\Program Files\Oracle\Inventory
MountsPanel - The following are the mount points selected by the user for instance PROD
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
US7ASCII
US-ASCII
e:\oracle\prodcomn
e:\oracle\proddb\9.2.0
e:\oracle\prodora\8.0.6
e:\oracle\prodora\iAS
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
e:\oracle\prodcomn\java
e:\oracle\prodcomn\portal
e:\oracle\prodcomn\util\jre\1.1.8
e:\oracle\prodcomn\temp
applmgr
password
apps.com
d:\MKS\mksnt
d:\VC98
C:\jdk1.3.1_06
c:\Program Files\Oracle\Inventory
MountsPanel - The following are the mount points selected by the user for instance PROD
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
US7ASCII
US-ASCII
e:\oracle\prodcomn
e:\oracle\proddb\9.2.0
e:\oracle\prodora\8.0.6
e:\oracle\prodora\iAS
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
e:\oracle\prodcomn\java
e:\oracle\prodcomn\portal
e:\oracle\prodcomn\util\jre\1.1.8
e:\oracle\prodcomn\temp
applmgr
password
apps.com
d:\MKS\mksnt
d:\VC98
C:\jdk1.3.1_06
c:\Program Files\Oracle\Inventory
SettingsPanel - The following are the selected settings for instance PROD
PROD
PROD
US7ASCII
AMERICA
1521
1626
7000
8000
8100
8200
8800
9000
9100
9200
9300
9800
10000
10100
10200
10300
16000-16009
17000-17009
18000-18019
19000-19009
AppsConfig temp dir set to: C:\DOCUME~1\applmgr\LOCALS~1\Temp
ConfigFilePanel - Setting temp directory to: C:\DOCUME~1\applmgr\LOCALS~1\Temp <-> C:\DOCUME~1\applmgr\LOCALS~1\Temp\
ConfigFilePanel - Writing configuration file to: C:\DOCUME~1\applmgr\LOCALS~1\Temp\config.txt
Port Availability Check :
Database Port Value = 1521...... Available
Operating System Check
command : cmd.exe /c D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\bin\checkOS.cmd
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>echo off
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\applmgr\Application Data
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=SYSD
ComSpec=C:\WINDOWS\system32\cmd.exe
DISPLAY=:0.0
HOME=C:\Documents and Settings\applmgr
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\applmgr
include=D:\VC98\atl\include;D:\VC98\mfc\include;D:\VC98\include
lib=D:\VC98\mfc\lib;D:\VC98\lib
LOGONSERVER=\\SYSD
MSDevDir=D:\VC98\MSDev98
NUMBER_OF_PROCESSORS=16
NUTCROOT=D:\MKS
OS=Windows_NT
Path=C:\Perl\bin;D:\MKS\bin;D:\MKS\bin\x11;D:\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\VC98\Tools\WinNT;D:\VC98\MSDev98\Bin;D:\VC98\Tools;D:\VC98\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0b
ProgramFiles=C:\Program Files
PROMPT=$P$G
ROOTDIR=D:\MKS
SESSIONNAME=Console
SHELL=D:\MKS\mksnt\sh.exe
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\applmgr\LOCALS~1\Temp
TERM=nutc
TERMCAP=D:\MKS\etc\termcap
TERMINFO=D:\MKS\usr\lib\terminfo
TMP=C:\DOCUME~1\applmgr\LOCALS~1\Temp
TMPDIR=C:\DOCUME~1\applmgr\LOCALS~1\Temp
USERDOMAIN=SYSD
USERNAME=applmgr
USERPROFILE=C:\Documents and Settings\applmgr
windir=C:\WINDOWS
Operating System patch/version test has suceeded
Port Uniqueness Check :
All ports are unique.
File System Check :
Database ORACLE_HOME created:
Mount Point = e:\oracle\proddb\9.2.0
Database ORACLE_HOME admin folder created:
Mount Point = e:\oracle\proddb\9.2.0\appsutil
Database ORACLE_HOME temp folder created:
Mount Point = e:\oracle\proddb\9.2.0\appsutil\temp
Database Install Log Directory created:
Mount Point = e:\oracle\proddb\9.2.0\appsutil\log\PROD_sysd
Database System File Directory created:
Mount Point = f:\oracle\proddata
Database Log File Directory available:
Mount Point = f:\oracle\proddata
Database Data File Directory available:
Mount Point = f:\oracle\proddata
Database Index File Directory available:
Mount Point = f:\oracle\proddata
File Space Check :
Disk space on system acceptable :
Database ORACLE_HOME = e:\oracle\proddb\9.2.0
required = 2381.0
actual = 102323.203125
Disk space on system acceptable :
Database System File Directory = f:\oracle\proddata
required = 9259.0
actual = 457021.93359375
Disk space on system acceptable :
Database Log File Directory = f:\oracle\proddata
required = 49.0
actual = 447762.93359375
Disk space on system acceptable :
Database Data File Directory = f:\oracle\proddata
required = 8175.0
actual = 447713.93359375
Disk space on system acceptable :
Database Index File Directory = f:\oracle\proddata
required = 6532.0
actual = 439538.93359375
Host/Domain Check :
command : ping -n 1 sysd
Pinging sysd [192.168.6.16] with 32 bytes of data:
Reply from 192.168.6.16: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.16:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
host ping has suceeded
command : ping -n 1 sysd.apps.com
Pinging sysd.apps.com [192.168.6.16] with 32 bytes of data:
Reply from 192.168.6.16: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.16:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
host.domain ping has suceeded
command : ping -n 1 sysm
Pinging sysm [192.168.6.17] with 32 bytes of data:
Reply from 192.168.6.17: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.17:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
host ping has suceeded
command : ping -n 1 sysm.apps.com
Ping request could not find host sysm.apps.com. Please check the name and try again.
Error - host.domain ping has returned an error: 1
System variable PATH set to:
C:\Perl\bin;D:\MKS\bin;D:\MKS\bin\x11;D:\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\VC98\Tools\WinNT;D:\VC98\MSDev98\Bin;D:\VC98\Tools;D:\VC98\bin
System Utilities Check :
command : cmd.exe /c D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\bin\checkutil.cmd d:\MKS\mksnt d:\VC98
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>echo off
Setting environment for using Microsoft Visual C++ tools.
C:\WINDOWS\system32/cmd.exe
'which' command is available.
C:\WINDOWS\system32/gnumake.exe
'gnumake' is available.
d:\MKS\mksnt/cc.exe
'cc' is available.
D:\VC98\BIN/link.exe
'link' is available.
ERRORCODE = 0 ERRORCODE_END
System Utilities Availability test has suceeded
JDK Availability Check :
running command : CheckerClass.JDKCheck()
JDK Availability Test has succeeded , Version Detected is java version "1.3.1_06"
QuickPanel - The following are the selected top directories for instance PROD
e:\oracle e:\oracle e:\oracle f:\oracle f:\oracle f:\oracle applmgr password apps.com
QuickPanel - The following are the selected top directories for instance PROD
e:\oracle e:\oracle e:\oracle f:\oracle f:\oracle f:\oracle applmgr password appsa.com
MountsPanel - The following are the mount points selected by the user for instance PROD
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
US7ASCII
US-ASCII
e:\oracle\prodcomn
e:\oracle\proddb\9.2.0
e:\oracle\prodora\8.0.6
e:\oracle\prodora\iAS
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
e:\oracle\prodcomn\java
e:\oracle\prodcomn\portal
e:\oracle\prodcomn\util\jre\1.1.8
e:\oracle\prodcomn\temp
applmgr
password
apps.com
d:\MKS\mksnt
d:\VC98
C:\jdk1.3.1_06
c:\Program Files\Oracle\Inventory
MountsPanel - The following are the mount points selected by the user for instance PROD
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
e:\oracle\prodappl
US7ASCII
US-ASCII
e:\oracle\prodcomn
e:\oracle\proddb\9.2.0
e:\oracle\prodora\8.0.6
e:\oracle\prodora\iAS
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
f:\oracle\proddata
e:\oracle\prodcomn\java
e:\oracle\prodcomn\portal
e:\oracle\prodcomn\util\jre\1.1.8
e:\oracle\prodcomn\temp
applmgr
password
appsa.com
d:\MKS\mksnt
d:\VC98
C:\jdk1.3.1_06
c:\Program Files\Oracle\Inventory
SettingsPanel - The following are the selected settings for instance PROD
PROD
PROD
US7ASCII
AMERICA
1521
1626
7000
8000
8100
8200
8800
9000
9100
9200
9300
9800
10000
10100
10200
10300
16000-16009
17000-17009
18000-18019
19000-19009
AppsConfig temp dir set to: C:\DOCUME~1\applmgr\LOCALS~1\Temp
ConfigFilePanel - Setting temp directory to: C:\DOCUME~1\applmgr\LOCALS~1\Temp <-> C:\DOCUME~1\applmgr\LOCALS~1\Temp\
ConfigFilePanel - Writing configuration file to: C:\DOCUME~1\applmgr\LOCALS~1\Temp\config.txt
Port Availability Check :
Database Port Value = 1521...... Available
Operating System Check
command : cmd.exe /c D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\bin\checkOS.cmd
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>echo off
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\applmgr\Application Data
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=SYSD
ComSpec=C:\WINDOWS\system32\cmd.exe
DISPLAY=:0.0
HOME=C:\Documents and Settings\applmgr
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\applmgr
include=D:\VC98\atl\include;D:\VC98\mfc\include;D:\VC98\include
lib=D:\VC98\mfc\lib;D:\VC98\lib
LOGONSERVER=\\SYSD
MSDevDir=D:\VC98\MSDev98
NUMBER_OF_PROCESSORS=16
NUTCROOT=D:\MKS
OS=Windows_NT
Path=C:\Perl\bin;D:\MKS\bin;D:\MKS\bin\x11;D:\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\VC98\Tools\WinNT;D:\VC98\MSDev98\Bin;D:\VC98\Tools;D:\VC98\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0b
ProgramFiles=C:\Program Files
PROMPT=$P$G
ROOTDIR=D:\MKS
SESSIONNAME=Console
SHELL=D:\MKS\mksnt\sh.exe
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\applmgr\LOCALS~1\Temp
TERM=nutc
TERMCAP=D:\MKS\etc\termcap
TERMINFO=D:\MKS\usr\lib\terminfo
TMP=C:\DOCUME~1\applmgr\LOCALS~1\Temp
TMPDIR=C:\DOCUME~1\applmgr\LOCALS~1\Temp
USERDOMAIN=SYSD
USERNAME=applmgr
USERPROFILE=C:\Documents and Settings\applmgr
windir=C:\WINDOWS
Operating System patch/version test has suceeded
Port Uniqueness Check :
All ports are unique.
File System Check :
Database ORACLE_HOME available:
Mount Point = e:\oracle\proddb\9.2.0
Database ORACLE_HOME admin folder available:
Mount Point = e:\oracle\proddb\9.2.0\appsutil
Database ORACLE_HOME temp folder available:
Mount Point = e:\oracle\proddb\9.2.0\appsutil\temp
Database Install Log Directory available:
Mount Point = e:\oracle\proddb\9.2.0\appsutil\log\PROD_sysd
Database System File Directory available:
Mount Point = f:\oracle\proddata
Database Log File Directory available:
Mount Point = f:\oracle\proddata
Database Data File Directory available:
Mount Point = f:\oracle\proddata
Database Index File Directory available:
Mount Point = f:\oracle\proddata
File Space Check :
Disk space on system acceptable :
Database ORACLE_HOME = e:\oracle\proddb\9.2.0
required = 2381.0
actual = 102323.203125
Disk space on system acceptable :
Database System File Directory = f:\oracle\proddata
required = 9259.0
actual = 457021.93359375
Disk space on system acceptable :
Database Log File Directory = f:\oracle\proddata
required = 49.0
actual = 447762.93359375
Disk space on system acceptable :
Database Data File Directory = f:\oracle\proddata
required = 8175.0
actual = 447713.93359375
Disk space on system acceptable :
Database Index File Directory = f:\oracle\proddata
required = 6532.0
actual = 439538.93359375
Host/Domain Check :
command : ping -n 1 sysd
Pinging sysd [192.168.6.16] with 32 bytes of data:
Reply from 192.168.6.16: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.16:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
host ping has suceeded
command : ping -n 1 sysd.apps.com
Pinging sysd.apps.com [192.168.6.16] with 32 bytes of data:
Reply from 192.168.6.16: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.16:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
host.domain ping has suceeded
command : ping -n 1 sysm
Pinging sysm [192.168.6.17] with 32 bytes of data:
Reply from 192.168.6.17: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.6.17:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
host ping has suceeded
command : ping -n 1 sysm.appsa.com
Pinging sysm.appsa.com [208.87.33.150] with 32 bytes of data:
Reply from 208.87.33.150: bytes=32 time=295ms TTL=48
Ping statistics for 208.87.33.150:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 295ms, Maximum = 295ms, Average = 295ms
host.domain ping has suceeded
System Utilities Check :
command : cmd.exe /c D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\bin\checkutil.cmd d:\MKS\mksnt d:\VC98
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>echo off
Setting environment for using Microsoft Visual C++ tools.
C:\WINDOWS\system32/cmd.exe
'which' command is available.
C:\WINDOWS\system32/gnumake.exe
'gnumake' is available.
d:\MKS\mksnt/cc.exe
'cc' is available.
D:\VC98\BIN/link.exe
'link' is available.
ERRORCODE = 0 ERRORCODE_END
System Utilities Availability test has suceeded
JDK Availability Check :
running command : CheckerClass.JDKCheck()
JDK Availability Test has succeeded , Version Detected is java version "1.3.1_06"
DoInstallPanel - Summary Text
The Rapid Install Wizard will now install the following:
Install Oracle 9i technology stack for PROD.
Install Oracle Applications Database Seed for PROD.
DoInstallPanel - User continued install at warning dialog.
DoInstallPanel - Beginning install for all users.
Starting from Rapid Install Full Stage area D:\Stage_area_11.5.9\oraDB\Disk1
RapidWiz location: D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz
Install Media location: D:\Stage_area_11.5.9\startCD\Disk1
APPL_TOP location: e:\oracle\prodappl
Database ORACLE_HOME: e:\oracle\proddb\9.2.0
Database SID: PROD
Database Context Name : PROD_sysd
Creating 9.2.0 DB Context from D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\etc\adxdbctx.tmp to e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\etc\adxdbctx.tmp
dest : e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
instantiate file:
source : e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
dest : e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
instantiate file:
source : e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
dest : e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
Processing DriverFile = D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adridb.drv
Running Instantiation Drivers for D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adridb.drv
Total number of processes in Current Install 3
Processing DriverFile = D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adridb.drv
Running Instantiation Drivers for D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adridb.drv
Invalid target file name in driver file: <s_com>\admin\out
Creation of Directory - E:\oracle\proddb\9.2.0\temp\PROD_sysd Succeeded.
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adrun8i.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd to C:\DOCUME~1\applmgr\LOCALS~1\Temp\templbac\adrun8i.cmd
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adrun9i.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd to C:\DOCUME~1\applmgr\LOCALS~1\Temp\templbac\adrun9i.cmd
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adrundb.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrundb.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrundb.cmd to C:\DOCUME~1\applmgr\LOCALS~1\Temp\templbac\adrundb.cmd
Step 0 of 3
Command: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd
Processing Step 1 of 3
Executing: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd APPS APPS
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM $Header: adrun8i.cmd 115.24 2003/07/17 00:44:02 psaddi ship $
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM ###############################################################
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM This file is automatically generated by AutoConfig. It will be read and overwritten.
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM If you were instructed to edit this file, or if you are not able to use the settings
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM created by AutoConfig, refer to Metalink document 165195.1 for assistance.
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM ###############################################################
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('DATE /T') DO (set date=%a )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>(set date=Fri 07/25/2008 )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('TIME /T') DO (set time=%a )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>(set time=05:49 PM )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM Print out the program name and start time
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>ECHO STARTED INSTALL PHASE : 8I RDBMS : Fri 07/25/2008 05:49 PM
STARTED INSTALL PHASE : 8I RDBMS : Fri 07/25/2008 05:49 PM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET JRE_PATH=D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\bin\java
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET JRE_CP=.;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\RapidWiz.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\rt.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\i18n.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\ewt-3_4_9.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\swingall-1_1_1.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\share-1_1_11.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\jnls.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\acc.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\help-3_1_8.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\oracle_ice-4_06_6.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\netcfg.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\xmlparserv2.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\adconfig.zip
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET ENV_FILE=e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET PATH=D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\unzip\NT;C:\Perl\bin;D:\MKS\bin;D:\MKS\bin\x11;D:\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\VC98\Tools\WinNT;D:\VC98\MSDev98\Bin;D:\VC98\Tools;D:\VC98\bin
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET EC=ERRORCODE
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>IF "5" == "1" (SET THREADS=1 ) ELSE (SET THREADS=16 )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>CD /D C:\DOCUME~1\applmgr\LOCALS~1\Temp
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Install 8i will only happen, if database is "db817"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if "db920" == "db817" goto :INSTALL_DB
C:\DOCUME~1\applmgr\LOCALS~1\Temp>goto :SCRIPTEND
C:\DOCUME~1\applmgr\LOCALS~1\Temp>FOR /F "delims==" %a IN ('DATE /T') DO (set date=%a )
C:\DOCUME~1\applmgr\LOCALS~1\Temp>(set date=Fri 07/25/2008 )
C:\DOCUME~1\applmgr\LOCALS~1\Temp>FOR /F "delims==" %a IN ('TIME /T') DO (set time=%a )
C:\DOCUME~1\applmgr\LOCALS~1\Temp>(set time=05:49 PM )
C:\DOCUME~1\applmgr\LOCALS~1\Temp>ECHO FINISHED INSTALL PHASE : 8I RDBMS : Fri 07/25/2008 05:49 PM
FINISHED INSTALL PHASE : 8I RDBMS : Fri 07/25/2008 05:49 PM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>echo "Database ORACLE_HOME installation succeeded"
"Database ORACLE_HOME installation succeeded"
e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd APPS APPS has suceeded
Step 1 of 3
Command: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd
Processing Step 2 of 3
Executing: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd APPS APPS
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM $Header: adrun9i.cmd 115.19 2003/07/17 00:44:06 psaddi ship $
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM ###############################################################
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM This file is automatically generated by AutoConfig. It will be read and overwritten.
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM If you were instructed to edit this file, or if you are not able to use the settings
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM created by AutoConfig, refer to Metalink document 165195.1 for assistance.
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM ###############################################################
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('DATE /T') DO (set date=%a )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>(set date=Fri 07/25/2008 )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('TIME /T') DO (set time=%a )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>(set time=05:49 PM )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>ECHO STARTED INSTALL PHASE : 9I RDBMS : Fri 07/25/2008 05:49 PM
STARTED INSTALL PHASE : 9I RDBMS : Fri 07/25/2008 05:49 PM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET JRE_PATH=D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\bin\java
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET JRE_CP=.;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\RapidWiz.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\rt.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\i18n.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\ewt-3_4_9.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\swingall-1_1_1.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\share-1_1_11.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\jnls.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\acc.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\help-3_1_8.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\oracle_ice-4_06_6.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\netcfg.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\xmlparserv2.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\adconfig.zip
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET ENV_FILE=e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET PATH=D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\unzip\NT;C:\Perl\bin;D:\MKS\bin;D:\MKS\bin\x11;D:\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\VC98\Tools\WinNT;D:\VC98\MSDev98\Bin;D:\VC98\Tools;D:\VC98\bin
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET EC=ERRORCODE
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>IF "5" == "1" (SET THREADS=1 ) ELSE (SET THREADS=16 )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>CD /D C:\DOCUME~1\applmgr\LOCALS~1\Temp
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Install 9i will only happen, if database is "db920"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if "db920" == "db920" goto :INSTALL_DB
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Installing 9i RDBMS
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Setting the driver file name
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>SET DRVNAME=gdb920.drv
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM install 9i
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>echo "Statusstring Installing 9i - D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\driver\db\driver\gdb920.drv"
"Statusstring Installing 9i - D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\driver\db\driver\gdb920.drv"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\bin\java -mx512M -classpath .;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\RapidWiz.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\rt.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\i18n.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\ewt-3_4_9.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\swingall-1_1_1.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\share-1_1_11.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\jnls.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\acc.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\help-3_1_8.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\oracle_ice-4_06_6.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\netcfg.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\xmlparserv2.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\adconfig.zip oracle.apps.ad.autoconfig.InstantiateFile -e e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml -d D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\driver\db\driver\gdb920.drv -pwd no_password_here -log e:\oracle\proddb\9.2.0\appsutil\log\PROD_sysd\dbInstall.log -nthreads 16 -verbose
Please specify valid number of threads. [1-12]
usage:
java oracle.apps.ad.autoconfig.InstantiateFile
-e ENV_FILE [[-d INST_DRV [-log LOGDIR -bacdir BACKDIR]] ||
[-d INST_DRV -tmpl TEMPLATE [-log LOGDIR -bacdir BACKDIR]] ||
[-tmpl TEMPLATE [-out OUTFILE]]] [-pwd PASSWORD] [-test] [-nthreads NUMBER]
java oracle.apps.ad.autoconfig.InstantiateFile
-name VAR_NAME -value VAR_VALUE [-tmpl TEMPLATE] -out OUTFILE [-pwd PASSWORD]
java oracle.apps.ad.autoconfig.InstantiateFile ENV_FILE INST_DRV
where:
ENV_FILE = Applications Context file to provide replacement vars
INST_DRV = Instantion File Driver to define templates to be instantiated
TEMPLATE = Template to be instantiated
LOGDIR = The log file directory (default=<APPL_TOP>/admin/<CONTEXTNAME>/log/timestamp)
BACKDIR = The directory for backing up previous templates
(default=<APPL_TOP>/admin/<CONTEXTNAME>/out/timestamp)
OUTFILE = Output file
PASSWORD = APPS password
VAR_NAME = A variable name to be replaced
VAR_VALUE = The value pair to VAR_NAME
NUMBER = Number of threads to be used in the zip action. Range [1-20]
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if 1 == 0 goto :DBINSTALL_OK
C:\DOCUME~1\applmgr\LOCALS~1\Temp>echo "Cannot execute Install for database ORACLE_HOME"
"Cannot execute Install for database ORACLE_HOME"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if "" == "TRUE" goto :DBINSTALL_OK
Error - script has returned an error: 1
Error Code received when running external process. Check log file for details.
Running Database Install Driver for PROD instance
Processing DriverFile = D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adridb.drv
Running Instantiation Drivers for D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adridb.drv
Invalid target file name in driver file: <s_com>\admin\out
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adrun8i.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd to C:\DOCUME~1\applmgr\LOCALS~1\Temp\templbac\adrun8i.cmd
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adrun9i.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd to C:\DOCUME~1\applmgr\LOCALS~1\Temp\templbac\adrun9i.cmd
instantiate file:
source : D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\template\adrundb.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrundb.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrundb.cmd to C:\DOCUME~1\applmgr\LOCALS~1\Temp\templbac\adrundb.cmd
Step 0 of 3
Command: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd
Processing Step 1 of 3
Step 1 of 3
Command: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd
Processing Step 2 of 3
Executing: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd APPS APPS
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM $Header: adrun9i.cmd 115.19 2003/07/17 00:44:06 psaddi ship $
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM ###############################################################
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM This file is automatically generated by AutoConfig. It will be read and overwritten.
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM If you were instructed to edit this file, or if you are not able to use the settings
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM created by AutoConfig, refer to Metalink document 165195.1 for assistance.
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM ###############################################################
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>REM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('DATE /T') DO (set date=%a )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>(set date=Fri 07/25/2008 )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>FOR /F "delims==" %a IN ('TIME /T') DO (set time=%a )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>(set time=05:49 PM )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>ECHO STARTED INSTALL PHASE : 9I RDBMS : Fri 07/25/2008 05:49 PM
STARTED INSTALL PHASE : 9I RDBMS : Fri 07/25/2008 05:49 PM
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET JRE_PATH=D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\bin\java
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET JRE_CP=.;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\RapidWiz.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\rt.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\i18n.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\ewt-3_4_9.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\swingall-1_1_1.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\share-1_1_11.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\jnls.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\acc.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\help-3_1_8.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\oracle_ice-4_06_6.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\netcfg.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\xmlparserv2.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\adconfig.zip
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET ENV_FILE=e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET PATH=D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\unzip\NT;C:\Perl\bin;D:\MKS\bin;D:\MKS\bin\x11;D:\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\VC98\Tools\WinNT;D:\VC98\MSDev98\Bin;D:\VC98\Tools;D:\VC98\bin
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>SET EC=ERRORCODE
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>IF "5" == "1" (SET THREADS=1 ) ELSE (SET THREADS=16 )
D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz>CD /D C:\DOCUME~1\applmgr\LOCALS~1\Temp
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Install 9i will only happen, if database is "db920"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if "db920" == "db920" goto :INSTALL_DB
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Installing 9i RDBMS
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM Setting the driver file name
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>SET DRVNAME=gdb920.drv
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM install 9i
C:\DOCUME~1\applmgr\LOCALS~1\Temp>REM
C:\DOCUME~1\applmgr\LOCALS~1\Temp>echo "Statusstring Installing 9i - D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\driver\db\driver\gdb920.drv"
"Statusstring Installing 9i - D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\driver\db\driver\gdb920.drv"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\bin\java -mx512M -classpath .;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\RapidWiz.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\rt.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jre\NT\1.3.1\lib\i18n.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\ewt-3_4_9.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\swingall-1_1_1.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\share-1_1_11.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\jnls.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\acc.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\help-3_1_8.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\oracle_ice-4_06_6.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\netcfg.jar;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\xmlparserv2.zip;D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\jlib\adconfig.zip oracle.apps.ad.autoconfig.InstantiateFile -e e:\oracle\proddb\9.2.0\appsutil\PROD_sysd.xml -d D:\Stage_area_11.5.9\startCD\Disk1\rapidwiz\driver\db\driver\gdb920.drv -pwd no_password_here -log e:\oracle\proddb\9.2.0\appsutil\log\PROD_sysd\dbInstall.log -nthreads 16 -verbose
Please specify valid number of threads. [1-12]
usage:
java oracle.apps.ad.autoconfig.InstantiateFile
-e ENV_FILE [[-d INST_DRV [-log LOGDIR -bacdir BACKDIR]] ||
[-d INST_DRV -tmpl TEMPLATE [-log LOGDIR -bacdir BACKDIR]] ||
[-tmpl TEMPLATE [-out OUTFILE]]] [-pwd PASSWORD] [-test] [-nthreads NUMBER]
java oracle.apps.ad.autoconfig.InstantiateFile
-name VAR_NAME -value VAR_VALUE [-tmpl TEMPLATE] -out OUTFILE [-pwd PASSWORD]
java oracle.apps.ad.autoconfig.InstantiateFile ENV_FILE INST_DRV
where:
ENV_FILE = Applications Context file to provide replacement vars
INST_DRV = Instantion File Driver to define templates to be instantiated
TEMPLATE = Template to be instantiated
LOGDIR = The log file directory (default=<APPL_TOP>/admin/<CONTEXTNAME>/log/timestamp)
BACKDIR = The directory for backing up previous templates
(default=<APPL_TOP>/admin/<CONTEXTNAME>/out/timestamp)
OUTFILE = Output file
PASSWORD = APPS password
VAR_NAME = A variable name to be replaced
VAR_VALUE = The value pair to VAR_NAME
NUMBER = Number of threads to be used in the zip action. Range [1-20]
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if 1 == 0 goto :DBINSTALL_OK
C:\DOCUME~1\applmgr\LOCALS~1\Temp>echo "Cannot execute Install for database ORACLE_HOME"
"Cannot execute Install for database ORACLE_HOME"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if "" == "TRUE" goto :DBINSTALL_OK
Error - script has returned an error: 1
Error Code received when running external process. Check log file for details.
Running Database Install Driver for PROD instance
Please guide.Hi,
Thank you for reply, i have changed the stage directory name but error is this one appearing, you can check above log file.
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if 1 == 0 goto :DBINSTALL_OK
C:\DOCUME~1\applmgr\LOCALS~1\Temp>echo "Cannot execute Install for database ORACLE_HOME"
"Cannot execute Install for database ORACLE_HOME"
C:\DOCUME~1\applmgr\LOCALS~1\Temp>if "" == "TRUE" goto :DBINSTALL_OK
Error - script has returned an error: 1
Error Code received when running external process. Check log file for details.
Running Database Install Driver for PROD instance
Processing DriverFile = D:\Stage11\startCD\Disk1\rapidwiz\template\adridb.drv
Running Instantiation Drivers for D:\Stage11\startCD\Disk1\rapidwiz\template\adridb.drv
Invalid target file name in driver file: <s_com>\admin\out
instantiate file:
source : D:\Stage11\startCD\Disk1\rapidwiz\template\adrun8i.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd to C:\Documents and Settings\applmgr\My Documents\templbac\adrun8i.cmd
instantiate file:
source : D:\Stage11\startCD\Disk1\rapidwiz\template\adrun9i.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd to C:\Documents and Settings\applmgr\My Documents\templbac\adrun9i.cmd
instantiate file:
source : D:\Stage11\startCD\Disk1\rapidwiz\template\adrundb.cmd
dest : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrundb.cmd
backup : e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrundb.cmd to C:\Documents and Settings\applmgr\My Documents\templbac\adrundb.cmd
Step 0 of 3
Command: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun8i.cmd
Processing Step 1 of 3
Step 1 of 3
Command: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd
Processing Step 2 of 3
Executing: e:\oracle\proddb\9.2.0\temp\PROD_sysd\adrun9i.cmd APPS APPS
------------------------------------------ -
[Solved] "slim: failed to execute login command" after awesomewm updat
Hi,
i updated some weeks ago via pacman -Syu, where also awesome wm was updated from 3.4.* to 3.5.* so I updated my rc.lua as it is told on their wiki, but i cant login with my rc.lua anymore i got the failed to execute login command error from slime. If i use the shipped efault rc.lua it works fine, can someone help me to figure out whats wrong with my rc.lua?
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require("menubar")
local vicious = require("vicious")
function fullscreens(c)
awful.client.floating.toggle(c)
if awful.client.floating.get(c) then
local clientX = screen[1].workarea.x
local clientY = screen[1].workarea.y
local clientWidth = 0
-- look at http://www.rpm.org/api/4.4.2.2/llimits_8h-source.html
local clientHeight = 2147483640
for s = 1, screen.count() do
clientHeight = math.min(clientHeight, screen[s].workarea.height)
clientWidth = clientWidth + screen[s].workarea.width
end
local t = c:geometry({x = clientX, y = clientY, width = clientWidth, height = clientHeight})
else
--apply the rules to this client so he can return to the right tag if there is a rule for that.
awful.rules.apply(c)
end
-- focus our client
client.focus = c
end
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = err })
in_error = false
end)
end
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-- beautiful.init("/home/kili/Repositories/awesome-themes/arch/theme.lua")
beautiful.init("/usr/share/awesome/themes/default/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "urxvt"
editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.floating,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier
-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag({ 1, 2, 3, 4, 5}, s, layouts[1])
end
-- {{{ Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal }
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu })
-- {{{ Wibox
-- Create a textclock widget
batwidget = wibox.widget.textbox()
vicious.register(batwidget, vicious.widgets.bat,
function(widget,args)
local formatstring = " Bat: "..args[1]..args[2] .."%".. " "..args[3] .. " "
if args[2] <= 25 and args[1] == "-" then
return "<span color=\"red\">".. formatstring .. "</span>"
end
return formatstring
end, 60, "BAT0")
netwidgetETH = wibox.widget.textbox()
netwidgetWIFI = wibox.widget.textbox()
vicious.register(netwidgetETH, vicious.widgets.net, ' eth0:<span color="#CC9393">${eth0 down_kb}</span> <span color="#7F9F7F">${eth0 up_kb}</span>', 3)
vicious.register(netwidgetWIFI, vicious.widgets.net,' wlan0:<span color="#CC9393">${wlan0 down_kb}</span> <span color="#7F9F7F">${wlan0 up_kb}</span>', 3)
menubar.utils.terminal = terminal
mytextclock = awful.widget.textclock()--{ align = "right" })
-- Create a systray
mysystray = wibox.widget.systray()
-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, awful.client.toggletag),
awful.button({ }, 4, function(t) awful.tag.viewnext(aweful.tag.getscreen(t)) end),
awful.button({ }, 5, function(t) awful.tag.viewprev(aweful.tag.getscreen(t)) end)
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
if c == client.focus then
c.minimized = true
else
c.minimized = false
if not c:isvisible() then
awful.tag.viewonly(c:tags()[1])
end
-- This will also un-minimize
-- the client, if needed
client.focus = c
c:raise()
end
end),
awful.button({ }, 3, function ()
if instance then
instance:hide()
instance = nil
else
instance = awful.menu.clients({ width=250 })
end
end),
awful.button({ }, 4, function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end))
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()--{ layout = awful.widget.layout.horizontal.leftright })
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(mylauncher)
left_layout:add(mytaglist[s])
left_layout:add(mypromptbox[s])
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
if s == 1 then right_layout:add(wibox.widget.systray()) end
right_layout:add(netwidgetWIFI)
right_layout:add(netwidgetETH)
right_layout:add(batwidget)
right_layout:add(mytextclock)
right_layout:add(mylayoutbox[s])
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_middle(mytasklist[s])
layout:set_right(right_layout)
mywibox[s]:set_widget(layout)
-- Add widgets to the wibox - order matters
--mywibox[s].widgets = {
-- mylauncher,
-- mytaglist[s],
-- mypromptbox[s],
--layout = awful.widget.layout.horizontal.leftright
-- mylayoutbox[s],
-- mytextclock,
-- batwidget,
-- netwidgetETH,
-- netwidgetWIFI,
-- s == 1 and mysystray or nil,
-- mytasklist[s],
-- layout = awful.widget.layout.horizontal.rightleft
end
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "w", function () mymainmenu:show() end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
-- Prompt
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end),
-- Multimedia
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -q sset Master 2dB-") end),
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -q sset Master 2dB+") end),
awful.key({ }, "XF86AudioNext",function () awful.util.spawn( "mocp -f" ) end),
awful.key({ }, "XF86AudioPrev",function () awful.util.spawn( "mocp -r" ) end),
awful.key({ }, "XF86AudioPlay",function () awful.util.spawn( "mocp -G" ) end),
awful.key({ }, "Print", function () awful.util.spawn("ksnapshot") end),
awful.key({ }, "", function () awful.util.spawn("slimlock") end)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
-- awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end),
awful.key({ modkey, "Shift" }, "f", fullscreens)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber))
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
-- {{{ Rules
if screen.count() > 1 then
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
-- border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
{ rule = { class = "Xdialog" },
properties = { floating = true } },
{ rule = { class = "Firefox" },
properties = { tag = tags[1][1] } },
{ rule = { name = "Thunderbird" },
properties = { tag = tags[1][2] } },
{ rule = { instance = "plugin-container" },
properties = { floating = true } },
{ rule = { class = "Luakit" },
properties = { floating = true } }
else
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
-- border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
{ rule = { class = "Firefox" },
properties = { tag = tags[1][2] } },
{ rule = { name = "Thunderbird" },
properties = { tag = tags[1][3] } },
{ rule = { instance = "plugin-container" },
properties = { floating = true, fullscreen = true } },
{ rule = { class = "Dolphin" },
properties = { floating = false, fullscreen = false, tag = tags[1][4] } },
{ rule = { class = "Luakit" },
properties = { floating = true } },
{ rule = { class = "Pidgin" },
properties = { tag = tags[1][5] } }
end
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c, startup)
-- Add a titlebar
-- awful.titlebar.add(c, { modkey = modkey })
-- Enable sloppy focus
c:connect_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Put windows in a smart way, only if they does not set an initial position.
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
end
local titlebars_enabled = false
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(awful.titlebar.widget.iconwidget(c))
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(awful.titlebar.widget.floatingbutton(c))
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
right_layout:add(awful.titlebar.widget.stickybutton(c))
right_layout:add(awful.titlebar.widget.ontopbutton(c))
right_layout:add(awful.titlebar.widget.closebutton(c))
-- The title goes in the middle
local title = awful.titlebar.widget.titlewidget(c)
title:buttons(awful.util.table.join(
awful.button({ }, 1, function()
client.focus = c
c:raise()
awful.mouse.client.move(c)
end),
awful.button({ }, 3, function()
client.focus = c
c:raise()
awful.mouse.client.resize(c)
end)
-- Now bring it all together
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_right(right_layout)
layout:set_middle(title)
awful.titlebar(c):set_widget(layout)
end
end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
Here is also my slime config and my initrc
ls -lisa .xinitrc
3276814 4 -rwxr-xr-x ...
#!/bin/sh
xrdb -merge ~/.Xresources
wicd-client --tray &
exec awesome #>> ~/.cache/awesome/stdout 2>> ~/.cache/awesome/stderr
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions awesome,xfce4,icewm-session,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user kili
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
focus_password yes
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme archlinux-simplyblack
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log
Thanks in advance!
Edit:
Besides a lot of other errors the problem was the systray. It was created 2 times, now login works again. I figured that out via enabling logging for awesome in the xinitrc again.
Last edited by stubb (2013-01-08 23:20:05)Hi,
I have the same kind of issue after updated slim from v1.3.4-4 to v1.3.5-1.
see my topic here :
https://bbs.archlinux.org/viewtopic.php?id=156792
Last edited by cedricl (2013-01-24 17:16:42) -
Error while executing jdbc commands but getting connection pool
I was not able to make a simple oracle connection and that hurts me.
The program(jsp) is...
<%@ page language="java" import="java.sql.*,java.io.*,
java.util.*,pac1.*,javax.naming.*,javax.sql.*"%>
<html>
<body>
<%
Context ctx= new InitialContext();
DataSource dsindogulf1=(DataSource)ctx.lookup("jnindogulf1");
Connection conn=dsindogulf1.getConnection();
if(conn!=null)
System.out.println(conn.toString());
else
System.out.println("sorry");
Statement st=conn.createStatement();
String string1="CREATE TABLE Authorr(col1 CHAR(10));";
st.executeUpdate(string1);
%>
</body>
</html>
If i delete the
st.executeUpdate(string1); then there is no problem I get the connection pool. That means i am getting the connection. But when i include the
st.executeUpdate(string1); there is an error which i cannot understand.. the error is
Error 500--Internal Server Error
java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-00911: invalid character
at weblogic.jdbc.base.BaseExceptions.createException(Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
at weblogic.jdbc.base.BaseExceptions.getException(I[Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
at weblogic.jdbc.oracle.OracleImplStatement.execute()V(Optimized Method)
at weblogic.jdbc.base.BaseStatement.commonExecute()V(Optimized Method)
at weblogic.jdbc.base.BaseStatement.executeUpdateInternal()I(Unknown Source)
at weblogic.jdbc.base.BaseStatement.executeUpdate(Ljava.lang.String;)I(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeUpdate(Ljava.lang.String;)I(Statement.java:360)
at jsp_servlet.__test._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__test.java:149)
at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
the steps which i have followed are... I have made a connection pool using weblogic type 4 driver in the administrative console... then i have created the data source using jndi name jnindogulf1..... but although i am getting the connection pool i am receiving error ehice executing jdbc commands
please help
thanksbabuli nayak wrote:
I was not able to make a simple oracle connection and that hurts me.
The program(jsp) is...
<%@ page language="java" import="java.sql.*,java.io.*,
java.util.*,pac1.*,javax.naming.*,javax.sql.*"%>
<html>
<body>
<%
Context ctx= new InitialContext();
DataSource dsindogulf1=(DataSource)ctx.lookup("jnindogulf1");
Connection conn=dsindogulf1.getConnection();
if(conn!=null)
System.out.println(conn.toString());
else
System.out.println("sorry");
Statement st=conn.createStatement();
String string1="CREATE TABLE Authorr(col1 CHAR(10));";
st.executeUpdate(string1);
%>
</body>
</html>
If i delete the
st.executeUpdate(string1); then there is no problem I get the connection pool. That means i am getting the connection. But when i include the
st.executeUpdate(string1); there is an error which i cannot understand.. the error is
Error 500--Internal Server Error
java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-00911: invalid character
at weblogic.jdbc.base.BaseExceptions.createException(Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
at weblogic.jdbc.base.BaseExceptions.getException(I[Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
at weblogic.jdbc.oracle.OracleImplStatement.execute()V(Optimized Method)
at weblogic.jdbc.base.BaseStatement.commonExecute()V(Optimized Method)
at weblogic.jdbc.base.BaseStatement.executeUpdateInternal()I(Unknown Source)
at weblogic.jdbc.base.BaseStatement.executeUpdate(Ljava.lang.String;)I(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeUpdate(Ljava.lang.String;)I(Statement.java:360)
at jsp_servlet.__test._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__test.java:149)
at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(Optimized Method)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
the steps which i have followed are... I have made a connection pool using weblogic type 4 driver in the administrative console... then i have created the data source using jndi name jnindogulf1..... but although i am getting the connection pool i am receiving error ehice executing jdbc commands
please help
thanks
Hi. Remove the semicolon from your SQL string: stmt.executeUpdate("CREATE TABLE Authorr(col1 CHAR(10))");Joe -
How to invoke BASH shell and execute a command in that shell in Windows 98
Hello, I have a problem and if somebody will help me, I will be very glad. Thank you.
I am using BASH shell on Windows 98 OS by means of CYGWIN. And I want to invoke this BASH shell and execute a preprogrammed command in the shell (./scan fileName.txt) from a JAVA program. But so far, I am not sucessful. I can not read or write anything from / to BASH shell. It either blocks and freezes (When I use waitFor( ) ) or appears and disappears without executing scan command (When I do not use waitFor( ) ). My code is like this:
// This method is used for compiling a file.
// It invokes BASH shell and executes "./scan fileName.txt" command
public void compileFileMethod () {
try {
Process proc = ( Runtime.getRuntime() ).exec ("C:\\MyDocuments\\CYGWIN.BAT); //I also tried to add -c ./scan fileName.txt after .BAT );
// I also tried to write "C:\\MyDocuments\\BASH.EXE" but it did not help
OutputStream ostr = proc.getOutputStream();
BufferedWriter bw = new BufferedWriter ( new OutputStreamWriter (ostr) );
InputStream istr = proc.getInputStream();
BufferedReader br = new BufferedReader ( new InputStreamReader (istr) );
InputStream errorStr = proc.getErrorStream();
BufferedReader errorBr = new BufferedReader ( new InputStreamReader (errorStr) );
bw.write("scan case40.10.txt"); /* I am trying to input the scan command to the shell,but it is not working*/
bw.flush();
Vector list = new Vector (1) ;
String str;
while ( (str = br.readLine() ) != null) {
list.addElement(str);
} // End of while
Enumeration enumForList = list.elements();
while ( enumForList.hasMoreElements() ) {
String tempString;
tempString = ( String ) enumForList.nextElement();
System.out.println(tempString); // I am trying to read the outputs of the scan command but it is not reading (I can not see any output)
I tried with and without waitFor( ), it did not work
// wait for command to terminate
proc.waitFor();
// close streams
br.close();
bw.close();
errorBr.close();
} // End of try
catch ( IOException ioe ) {
JOptionPane.showMessageDialog (null, "Input / output error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
} // End of catch
catch ( SecurityException se ) {
JOptionPane.showMessageDialog (null, "Security error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
catch ( InterruptedException ie ) {
JOptionPane.showMessageDialog (null, "Interruption error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
} // End of method compileFileMethod
// Thank you for your helps and time.You cannot invoke BAT files directly, you have to invoke the program that run those files which is your Windows 98 shell. For example (under windows 2000), i would invoke "cmd.exe sricpt.bat some args", rather than "script.bar some args".
Hope this will help you out. -
How to execute unix command from ODI Procedure
Hi,
I am trying to execute below unix command from ODI Procedure (Command on Target tab) but I am getting the error "java.io.IOException: Cannot run program "cd": error=2, No such file or directory" but when I try to execute the same command using OdiOSCommand, it is executing successfully. I don't want to use shell script to execute this command. Is there any specific syntax am I missing to execute this command from ODI procedure?
cd /project3/tmt/;ls *.dmp > dmplist.lst
Please help me on this...
Thanks
MTHi nahlikh,
Thank you for the reply.
I used below command in Procedure but still getting the same error as "java.io.IOException: Cannot run program "OdiOSCommand": error=2, No such file or directory".
OdiOSCommand "-COMMAND=cd /project3/tmt/;ls *.dmp > dmplist.lst"
as I mentioned earlier if I use the command cd /project3/tmt/;ls *.dmp > dmplist.lst in OdiOSCommand tool it is executing successfully without any issues.
any thoughts appreciated to get a solution for this issue.
Thanks
MT -
Executing System Commands In Java
Hi,
I am not sure if this is a bug � or I am just doing this wrong. I have
written a program to move files into ~/.trash/ . My problem is that this
works only for files without spaces � but for files with spaces it will
not work. Some of my code is below.
I have temporarily uploaded the complete file at
http://www.geocities.com/carmaski/Remove.java
public static void main(String args[]) {
String currDir = System.getProperty("user.dir") + "/";
String trashDir = "\" \"/home/masca/.trash/";
String commandString = "";
for (int i = 0; i < args.length; i++ ) {
File tmpFile = new File(currDir + args);
if(tmpFile.exists()) {
commandString = "mv \"" + currDir + args[i] + trashDir
+ args[i] + getTimeTag() + "\"";
System.out.println("The command would be -- " +
commandString);
try {
Process p = Runtime.getRuntime().exec(commandString);
catch (IOException e) {
e.printStackTrace();
System.exit(-1);
As an example I tried � this with a file that has a space � and I get
the following output.
The command would be -- mv "/home/masca/WORK/Text File"
"/home/masca/.trash/Text File_2005.04.17_04hrs:25mins:36secs"
However the file remains without being moved.
I cannot understand why the mv command does not work in java. If I
manually copy this to the command line I can get the file to work. It
should be noted that this program works perfectly if the file does not
have a space.
Regards,
RioUse File.separator or simply / instead of Windows
backslashes.
- SaishI think OP is on a unix machine, and he still needs to escape the spaces. The escape character is, of course, a back-slash.
Depending on the shell (my experience is with bash), to execute the command mv Test File.txt newTest File.txt, the file names either need to be double-quoted so that the command shell will treat them as a single token (I think that will work), or the spaces need to be escaped (I know that will work). In java, to include a single \ in a literal String, you need to escape the escape character, which is why I think two \\ are needed in the String, so that one will survive to be passed on to the exec command.
� {� -
Folio is uploaded in the server but I cannot see it in my Adobe Viewer
My folio is uploaded in the server but I cannot see it in my Adobe Viewer in my iPad, any idea guys how to be able to see it in my Viewer?
Thanks.There are some bugs that can cause this issue. If you are adding long, smooth scrolling pages (ie 1024x3000) and performing a "New" to add the page from the Folio Builder Panel versus using the "Import" command, this issue can be caused.
As the previous posted said, you need to either have all horizontal, all vertical, or all horizontal and all vertical pages. You cannot have a mix of both. If there is a fundamental error with your folio, it iwll not be available in the viewer. -
ORA-12015: cannot create a fast refresh materialized view from a complex q
Hi,
I'm facing very strange problem. Please help me why this error is coming
I'm creating a simple materialized view, but it is giving below error since this is simple select * from.
CREATE MATERIALIZED VIEW EFMS.MS_TASK
BUILD IMMEDIATE
REFRESH FAST
START WITH SYSDATE
NEXT (SYSDATE + 1/24)
WITH ROWID
AS
SELECT * FROM MS_TASK@efms_link;
SELECT * FROM MS_TASK@efms_link
ERROR at line 8:
ORA-12015: cannot create a fast refresh materialized view from a complex query
CREATE MATERIALIZED VIEW LOG ON MSDBO.MS_TASK
TABLESPACE DBOR_MVLOG
PCTUSED 0
PCTFREE 60
INITRANS 20
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOCACHE
NOLOGGING
PARALLEL ( DEGREE 2 INSTANCES 1 )
WITH ROWID, PRIMARY KEY
EXCLUDING NEW VALUES;1º
Not is a best practice to use 'select *'
2º
ORA-12015: cannot create a fast refresh materialized view from a complex query
Cause: Neither ROWIDs and nor primary key constraints are supported for complex queries.
Action: Reissue the command with the REFRESH FORCE or REFRESH COMPLETE option or create a simple materialized view.
Then you have to change REFRESH FAST or create a primary key in MS_TASK@efms_link to avility fast refresh.
. :-) any help with my english is wellcome :-) . -
Execute linux command from java
I wanna execute linux command from java, bu the output has error:
Return code = 1
top: failed tty get
The code as:
import java.io.*;
public class Execute {
public static void main(String[] args) {
try {
final Process process = Runtime.getRuntime().exec("top");
new Thread() {
public void run() {
try {
InputStream is = process.getInputStream();
byte[] buffer = new byte[1024];
for (int count = 0; (count = is.read(buffer)) >= 0;) {
System.out.write(buffer, 0, count);
} catch (Exception e) {
e.printStackTrace();
}.start();
new Thread() {
public void run() {
try {
InputStream is = process.getErrorStream();
byte[] buffer = new byte[1024];
for (int count = 0; (count = is.read(buffer)) >= 0;) {
System.err.write(buffer, 0, count);
} catch (Exception e) {
e.printStackTrace();
}.start();
int returnCode = process.waitFor();
System.out.println("Return code = " + returnCode);
} catch (Exception e) {
e.printStackTrace();
}Help please.Your code is probably good to run a program, that does not use terminal capabilities.
Program "top" is a little bit more complicated - you have to run it with a real terminal.
Try to run "xterm -e top". You can find an example how to run an external program
from java code in cnd/gdb module on http://cnd.netbeans.org
For example, take a look at openExternalProgramIOWindow() method on this page:
http://cnd.netbeans.org/source/browse/cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/proxy/Attic/GdbProxyCL.java?rev=1.1.2.6.2.5&only_with_tag=release551_fixes&view=markup
It runs a command with external terminal.
Thanks,
Nik -
Unable to execute Linux command from Java
Hi,
I am currently working on a code wherein i need to execute Linux command from Java. Below are some of the query i have.
1) Is there any efficient method of running OS commands from Java, rather than using Runtime and Process method.
2) Below is details of my code which fails in execution
**-- Java Version**
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
-- Program Code ----
Where <path> = Path i put myself
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.*;
public class GetInode{
* @param args
public static void main(String[] args) {
GetInode test = new GetInode();
test.getInode();
public void getInode(){
String command = "/usr/bin/stat -Lt <path>;
System.out.println(command);
Process process;
Runtime rt;
try{
rt = Runtime.getRuntime();
process = rt.exec(command);
InputStreamReader isr = new InputStreamReader(process.getErrorStream());
BufferedReader bre = new BufferedReader(isr);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream());
System.out.println(bre.readLine());
System.out.println(br.readLine().split(" ")[7]);
process.destroy();
}catch (Exception ex){
System.out.println("Error :- " + ex.getMessage());
------Output -------------
/usr/bin/stat -Lt "<path>"
/usr/bin/stat: cannot stat `"<path>"': No such file or directory
Error :- null
Can any one help me what is wrong and why i am unable to run the Linux command from Java.For clarity purpose............i m submitting actual code here
--- Code ---
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.*;
public class GetInode{
* @param args
public static void main(String[] args) {
GetInode test = new GetInode();
test.getInode();
public void getInode(){
String command = "/usr/bin/stat -Lt \"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt\"";
System.out.println(command);
Process process;
Runtime rt;
try{
rt = Runtime.getRuntime();
process = rt.exec(command);
InputStreamReader isr = new InputStreamReader(process.getErrorStream());
BufferedReader bre = new BufferedReader(isr);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
System.out.println(bre.readLine());
System.out.println(br.readLine().split(" ")[7]);
process.destroy();
}catch (Exception ex){
System.out.println("Error :- " + ex.getMessage());
--- Output ---
[ratz]s0898671: java GetInode
/usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
/usr/bin/stat: cannot stat `"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"': No such file or directory
Error :- null
-- Linux Terminal --
If i copy the first line from the output and execute on Linux terminal her is the output that i get
[ratz]s0898671: /usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt 12003 24 81a4 453166 10000 1c 360466554 2 0 1 1246638450 1246638450 1246638450 4096
Can you just assist me where am i really making mistake.......i was wondering if the command that i pass from Java....can be executed on Linux terminal why is it faling to run from java.........and when i print the Error Stream for process output........it show cannot Stat.......
Maybe you are looking for
-
ASP Includes in Dreamweaver cs3
Hi all, My issue is that I can't get more than 1 include to display in the editor view of dreamweaver...I have all my settings setup correctly for my site, but it fails to show anything past the first one. I don't ever use this editor view, but my bo
-
I need to accept cookies to log into a technical site. I clear all cookies and the history and follow the instructions for setting privacy options to "Use custom settings for history" and to accept all cookies. When I go back to try logging into the
-
My ipad air2 screen is black and won't come on. I can hear siri but she says she cant work right now. What do I do?
-
Some Photos from card not appearing on Import
When I Import photos into Aperture from my EOS 1d in many case it tends to just find about a third of the images that are on the card and the "Loading Assets" Indicator in Aperture just spins forever and the rest of the images from the card never app
-
Dear All I am working on SAP Business One 8.8 PL05 and am facing problem while adding numbering series, have added Period indicator as 11-12 bt its giving error as 'This entry already exists in the following table'. If any of you know's how to resolv