LIBPATH environment variable on AIX
My oracle user doesn't have this environment variable LIBPATH configured properly. I'm trying to change it but i can't find where it was set.
I've checked /etc/profile, /etc/environment, .profile and .env but it's not set anywhere.
Yet, when i type set as oracle, i see it set.
I've tried addint export LIBPATH=correctsetting but it's still not updated.
Has anyone seen this or has any ideas as to how i can set this environment variable? (environment is oracle 10g on AIX)
Thanks.
Mine is setup when the /var/opt/oracle/orarc102 is called.
The /var/opt/oracle/orarc102 is called within my .profile
Regards
Tim
When use say oracle user are you refering to the ORACLE account itself or another user account?
If you are refering to another oracle user then go through the .profile and the other . files and see what is called during login. You will eventually find where it is setup. Of course if you are refering to the ORACLE account then I don't know what to tell you.
Message was edited by:
Timothy Boles
Similar Messages
-
Complete checklist for oracle 11.2.0.4 environment variables on AIX 6
Hi,
Can anyone give me the Doc ID for complete checklist for oracle environment variable 11.2.0.4 on IBM AIX 6 platform (64 bit).
Because we get the following from IBM website, we wonder if any other oracle variable need to make a change, or will impact upgrade correctly on AIX.
“AIX 5.1 uses an environment variable LIBPATH when loading shared libraries. AIX 5.3 uses LD_LIBRARY_PATH
instead. For backward compatibility, AIX5.3 still uses LIBPATH if it is defined.”
URL: http://www-01.ibm.com/support/docview.wss?uid=isg3T1015835
So we can actually define both -
LIBPATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LIBPATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; /usr/local/lib export LD_LIBRARY_PATH
there are less companies use AIX to run oracle database than those use Unix/Linux; we are planning upgrade oracle database 11.2.0.3 to 11.2.0.4 on IBM AIX (64bit) os level 6, so we need to double-confirm this. FYI.
thank you very much!Hi Abhi: the Doc URL you give me (<e48740>) it doesn't help much. It doesn't tell much about environment variables for oracle. I have the following sample for oracle .profile at IBM AIX 6.1, is it Ok enough for us as basic setting?
vi /home/oracle/.profile
# Oracle variables
umask 022
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_SID=meps; export ORACLE_SID
ORACLE_BASE=/ora_bin01/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0; export ORACLE_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin export TNS_ADMIN
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:/usr/sbin:/usr/ccs/bin; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib:/lib:/usr/lib;/usr/local/lib export LD_LIBRARY_PATH
LIBPATH=$LD_LIBRARY_PATH export LIBPATH
CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib:$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/network/jlib:$ORACLE_HOME/oui/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
Note:
there are optional environment variables: TNS_ADMIN(optional), NLS_LANG (optional), TWO_TASK (optional)
thank you! -
Set DISPLAY environment variable -- in DBCA not working at AIX OS
Hi,
I want to create new database in AIX OS and database is oracle 10g:-
When i say DBCA it is giving below error, what should i do?
$ dbca
DISPLAY not set.
Set DISPLAY environment variable, then re-run.
Please help...Pravin wrote:
How to set the DISPLAY environment variable in AIX?Usual format is:
+<host>:<display-number>+
E.g.
export DISPLAY=192.168.0.235:1
Where the host is the hostname or IP address of the client platform running a X-Server. If the X-Server is running locally, then this entry can be omitted.
The display-number is the display number of the X-Server to use. A single X-Server can have multiple displays. E.g. Unix server running a X-Server can have 10 users connected via X-Terminals and will this have 10 displays.
Judging from X-Windows questions asked on OTN, it seems to be a tad complex to grasp for some - especially those from a MS Windows background as X-Windows is very different and also reverses the client-server concept, requiring the X-Server component to be running on the client platform (where the server platform runs the program that is the X-client).
So it is a lot easier to rather use something like VNC instead - supported on most Unix platforms, Linux, Windows and Apple's OS/X.
Simply run the VNC server on the server platform to create a virtual container for running the X-server display. Connect from a client using a VNC client.
As it uses the RFB (Remote Frame Buffer) protocol, it is a lot faster than running the slower and larger X11 protocol required for X-Windows connectivity over TCP/IP. -
Once again oci8 on AIX: environment variables
Hallo,
I don't know how I have to set my environment variables, when I
use the oci8 on AIX. Is there someone who could tell me this?
Thanks
J. Ohngemach
nullhi,
take a look :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a245e690-0201-0010-4393-ef078d3ad0ed
https://service.sap.com/instguides
SAP NetWeaver->Installation->SAP BW -
Adrelink.sh fails with new environment variable settings (HISTTTY)
Our IBM-AIX system administrators have adjusted some Unix Host environment variables, like HISTTTY, and made them readonly. They did this for locking down some security issues. When you run adpatch, for example, it would error when running adrelink. When you look at adrelink log, you see the following text:
You are running adrelink, version 115.28
Start of adrelink session
Date/time is Mon Feb 7 10:42:00 EST 2011
Log file is /in/OAAP/apps11i/oaapappl/admin/OAAP/log/adrelink.log
Command line arguments are
"force=y" "ranlib=y" "link_debug=n"
"filelist=/in/OAAP/apps11i/oaapappl/admin/OAAP/out/alkglx000.txt"
Operating System Information (output of 'uname -a'):AIX m015ap01 3 5 000AB1E0D600
Backup Mode is "file"
Removing extra variables from the environment...
adrelink will save the following variables (if set): - Generic:"PATH ORACLE_HOME TMPDIR TZ APPL_TOP APPLFENV
PLATFORM LD_LIBRARY_PATH COBDIR
LIBPATH NLS_LANG JAVA_TOP PERL5LIB"
- Shell-Specific: "PS1 PS2 PS3 PS4 IFS MAILCHECK _ LOGNAME A__z"
Beginning pass 1.
Processing 408 environment variables...
/in/OAAP/apps11i/oaapappl/ad/11.5.0/bin/adrelinknew.sh[1066]: HISTTTY: is read only
adrelink is exiting with status 1
End of adrelink session
Date/time is Mon Feb 7 10:42:01 EST 2011
Thanks in advance!Our IBM-AIX system administrators have adjusted some Unix Host environment variables, like HISTTTY, and made them readonlyWhat is the value of HISTTTY"
Processing 408 environment variables...
/in/OAAP/apps11i/oaapappl/ad/11.5.0/bin/adrelinknew.sh[1066]: HISTTTY: is read only
adrelink is exiting with status 1
End of adrelink sessionFrom the error, looks like you need to give applmgr user more privileges on HISTTTY (try the execute privilege only first).
Thanks,
Hussein -
Error Setting Environment Variable inside Listner.ora
Hi,
I am trying to set an environment variable inside listner.ora as follows
(ENVS="EXTPROC_DLLS=ANY,LD_LIBRARY_PATH=/opt/app/oracle/product/9.2/lib32:/opt/app/oracle/product/9.2/network/lib32:/usr/lib:/usr/X11R6:/usr/dt/lib,LIBPATH=/opt/app/oracle/product/9.2/lib32,MQSERVER=SYSTEM.DEF.SVRCONN/TCP/ashsou03.mcilink.com(4444)")
but every time I try to start the listner it gives me the following error:
TNS-01155: Incorrectly specified SID_LIST_LISTENER parameter in LISTENER.ORA
NL-00303: syntax error in NV string
I think that the parenthses, (4444), in the MQSERVER value is causing this. Any ideas on how I can configure it?Hi
Very many thanks for ur solution.. i actually hadset the environment variables spacce..but when i execute the autoexec.bat file i dont get any error(out of env space)..but when i run the startup.bat file i get from the command prompt, i get the foll error.
This is my Autoexec.bat
SET JAVA_HOME=D:\Jkit\bin
SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29\bin
SET PATH=D:\Jkit\bin;C:\WINDOWS;C:\WINDOWS\COMMAND;
SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
THE FOLLOWING IS THE ERROR I GET WHEN I RUN STARTUP.BAT UNDER TOMCAT'S BIN UNDER THE COMMAND PROMPT
D:\tomcat\jakarta-tomcat-4.1.29\bin>startup
Syntax error
Out of environment space
Out of environment space
Out of environment space
Using CATALINA_BASE: D:\tomcat\jakarta-tomcat-4.1.29
Using CATALINA_HOME: D:\tomcat\jakarta-tomcat-4.1.29
Using CATALINA_TMPDIR: D:\tomcat\jakarta-tomcat-4.1.29\temp
Using JAVA_HOME: D:\Jkit
Out of environment space
Out of environment space
Invalid switch - -DJAVA.ENDORSED.DIRS=D:\TOMCAT\JAKARTA-TOMCAT-4.1.29\COMMON\ENDORSED
I even set JAVA_HOME AND CATALINE_HOME to the \bin dir respectively..
still i get the same error
As given under the tomcat installation documentation (RUNNING.txt), i set the space for environment space under the Memory tab, for startup and shutdown.bat files, it creates a shortcut for running the resp .bat files, running startup.bat file i get,CATALINA_HOME VAR HAS NOT BEEN SET PROPERLY, THIS OCCURS FOR BOTH TOP LEVEL DIR SETTING AND /bin DIR SETTING of CATALINE_HOME IN autoexec.bat
PLEASE HEL, I HAVE BEEN TRYING TO CONFIGURE IT FOR THE PAST DAYS BUT WITH NO SUCCESS, DONT KNOW WHERE I AM GOING WRONG..PLEASE HELP -
Unix shell: Environment variable works for file system but not for ASM path
We would like to switch from file system to ASM for data files of Oracle tablespaces. For the path of the data files, we have so far used environment variables, e.g.,
CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
This works just fine (from shell scripts, PL/SQL packages, etc.) if ORACLE_DB_DATA denotes a file system path, such as "/home/oracle", but doesn’t work if the environment variable denotes an ASM path like "\+DATA/rac/datafile". I assume that it has something to do with "+" being a special character in the shell. However, escaping "\+" didn’t work. I tried with both bash and ksh.
Oracle managed files (e.g., set DB_CREATE_FILE_DEST to +DATA/rac/datafile) would be an option. However, this would require changing quite a few scripts and programs. Therefore, I am looking for a solution with the environment variable. Any suggestions?
The example below is on a RAC Attack system (http://en.wikibooks.org/wiki/RAC_Attack_-OracleCluster_Database_at_Home). I get the same issues on Solaris/AIX/HP-UX on 11.2.0.3 also.
Thanks,
Martin
==== WORKS JUST FINE WITH ORACLE_DB_DATA DENOTING FILE SYSTEM PATH ====
collabn1:/home/oracle[RAC1]$ export ORACLE_DB_DATA=/home/oracle
collabn1:/home/oracle[RAC1]$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 24 20:57:09 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
Tablespace created.
SQL> !ls -l ${ORACLE_DB_DATA}/bma.dbf
-rw-r----- 1 oracle asmadmin 2105344 Aug 24 20:57 /home/oracle/bma.dbf
SQL> drop tablespace bma including contents and datafiles;
==== DOESN’T WORK WITH ORACLE_DB_DATA DENOTING ASM PATH ====
collabn1:/home/oracle[RAC1]$ export ORACLE_DB_DATA="+DATA/rac/datafile"
collabn1:/home/oracle[RAC1]$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 24 21:08:47 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON
ERROR at line 1:
ORA-01119: error in creating database file '${ORACLE_DB_DATA}/bma.dbf'
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
SQL> -- works if I substitute manually
SQL> CREATE TABLESPACE BMA DATAFILE '+DATA/rac/datafile/bma.dbf' SIZE 2M AUTOEXTEND ON;
Tablespace created.
SQL> drop tablespace bma including contents and datafiles;My revised understanding is that it is not a shell issue with replacing +, but an Oracle problem. It appears that Oracle first checks whether the path starts with a "+" or not. If it does not (file system), it performs the normal environment variable resolution. If it does start with a "+" (ASM case), Oracle does not perform environment variable resolution. Escaping, such as "\+" instead of "+" doesn't work either.
To be more specific regarding my use case: I need the substitution to work from SQL*Plus scripts started with @script, PL/SQL packages with execute immediate, and optionally entered interactively in SQL*Plus.
Thanks,
Martin -
Change the environment variables for sid adm failed
Hi Experts,
I have installed ECC HA on AIX/ORACLE
now i want to change the environment variables for the qr1adm user at the standby node
i tried to change the /home/qr1adm/.profile with command
vi /home/qr1adm/.profile it is changed and i saved this changes.
now I login with qr1adm user and i executed this command
env |more
it comes with the old values
i don't know why?
and if i oppened the .profile file i'm finding the new values
So could you please tell me how can i change the environment variable for qr1adm user
Thanks
Sherif
Edited by: Sherif Eid on Jan 23, 2008 9:08 AMThanks Sridhar ,
which hostname?
for example i have
.dbenv_R3QASsvc.csh
.sapenv_KFGKWERPR303.csh
i want to tell you that R3QASsvc is the virtual hostname
and KFGKWERPR303 is the name of the primary node A
and the phiscal host name of node B is KFGKWERPR307
so which one should i change it?
thanks
Sherif
Edited by: Sherif Eid on Jan 23, 2008 11:59 AM -
How to get system Environment variable?
How to get system Environment variable without using jni?
just like "JAVA_HOME" or "PATH"...
Any reply is help to me!! :-)Thx for your reply...
I get it!!!
Read environment variables from an application
Start the JVM with the "-D" switch to pass properties to the application and read them with the System.getProperty() method. SET myvar=Hello world
SET myothervar=nothing
java -Dmyvar="%myvar%" -Dmyothervar="%myothervar%" myClass
then in myClass String myvar = System.getProperty("myvar");
String myothervar = System.getProperty("myothervar");
This is useful when using a JAVA program as a CGI.
(DOS bat file acting as a CGI) java -DREQUEST_METHOD="%REQUEST_METHOD%"
-DQUERY_STRING="%QUERY_STRING%"
javaCGI
If you don't know in advance, the name of the variable to be passed to the JVM, then there is no 100% Java way to retrieve them.
NOTE: JDK1.5 provides a way to achieve this, see this HowTo.
One approach (not the easiest one), is to use a JNI call to fetch the variables, see this HowTo.
A more low-tech way, is to launch the appropriate call to the operating system and capture the output. The following snippet puts all environment variables in a Properties class and display the value the TEMP variable. import java.io.*;
import java.util.*;
public class ReadEnv {
public static Properties getEnvVars() throws Throwable {
Process p = null;
Properties envVars = new Properties();
Runtime r = Runtime.getRuntime();
String OS = System.getProperty("os.name").toLowerCase();
// System.out.println(OS);
if (OS.indexOf("windows 9") > -1) {
p = r.exec( "command.com /c set" );
else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 2000") > -1 )
|| (OS.indexOf("windows xp") > -1) ) {
// thanks to JuanFran for the xp fix!
p = r.exec( "cmd.exe /c set" );
else {
// our last hope, we assume Unix (thanks to H. Ware for the fix)
p = r.exec( "env" );
BufferedReader br = new BufferedReader
( new InputStreamReader( p.getInputStream() ) );
String line;
while( (line = br.readLine()) != null ) {
int idx = line.indexOf( '=' );
String key = line.substring( 0, idx );
String value = line.substring( idx+1 );
envVars.setProperty( key, value );
// System.out.println( key + " = " + value );
return envVars;
public static void main(String args[]) {
try {
Properties p = ReadEnv.getEnvVars();
System.out.println("the current value of TEMP is : " +
p.getProperty("TEMP"));
catch (Throwable e) {
e.printStackTrace();
Thanks to W.Rijnders for the W2K fix.
An update from Van Ly :
I found that, on Windows 2003 server, the property value for "os.name" is actually "windows 2003." So either that has to be added to the bunch of tests or just relax the comparison strings a bit: else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 2000") > -1 )
|| (OS.indexOf("windows 2003") > -1 ) // works but is quite specific to 2003
|| (OS.indexOf("windows xp") > -1) ) {
else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 20") > -1 ) // probably is better since no other OS would return "windows" anyway
|| (OS.indexOf("windows xp") > -1) ) {
I started with "windows 200" but thought "what the hell" and made it "windows 20" to lengthen its longivity. You could push it further and use "windows 2," I suppose. The only thing to watch out for is to not overlap with "windows 9."
On Windows, pre-JDK 1.2 JVM has trouble reading the Output stream directly from the SET command, it never returns. Here 2 ways to bypass this behaviour.
First, instead of calling directly the SET command, we use a BAT file, after the SET command we print a known string. Then, in Java, when we read this known string, we exit from loop. [env.bat]
@set
@echo **end
[java]
if (OS.indexOf("windows") > -1) {
p = r.exec( "env.bat" );
while( (line = br.readLine()) != null ) {
if (line.indexOf("**end")>-1) break;
int idx = line.indexOf( '=' );
String key = line.substring( 0, idx );
String value = line.substring( idx+1 );
hash.put( key, value );
System.out.println( key + " = " + value );
The other solution is to send the result of the SET command to file and then read the file from Java. ...
if (OS.indexOf("windows 9") > -1) {
p = r.exec( "command.com /c set > envvar.txt" );
else if ( (OS.indexOf("nt") > -1)
|| (OS.indexOf("windows 2000") > -1
|| (OS.indexOf("windows xp") > -1) ) {
// thanks to JuanFran for the xp fix!
p = r.exec( "cmd.exe /c set > envvar.txt" );
// then read back the file
Properties p = new Properties();
p.load(new FileInputStream("envvar.txt"));
Thanks to JP Daviau
// UNIX
public Properties getEnvironment() throws java.io.IOException {
Properties env = new Properties();
env.load(Runtime.getRuntime().exec("env").getInputStream());
return env;
Properties env = getEnvironment();
String myEnvVar = env.get("MYENV_VAR");
To read only one variable : // NT version , adaptation for other OS is left as an exercise...
Process p = Runtime.getRuntime().exec("cmd.exe /c echo %MYVAR%");
BufferedReader br = new BufferedReader
( new InputStreamReader( p.getInputStream() ) );
String myvar = br.readLine();
System.out.println(myvar);
Java's System properties contains some useful informations about the environment, for example, the TEMP and PATH environment variables (on Windows). public class ShowSome {
public static void main(String args[]){
System.out.println("TEMP : " + System.getProperty("java.io.tmpdir"));
System.out.println("PATH : " + System.getProperty("java.library.path"));
System.out.println("CLASSPATH : " + System.getProperty("java.class.path"));
System.out.println("SYSTEM DIR : " +
System.getProperty("user.home")); // ex. c:\windows on Win9x system
System.out.println("CURRENT DIR: " + System.getProperty("user.dir"));
Here some tips from H. Ware about the PATH on different OS.
PATH is not quite the same as library path. In unixes, they are completely different---the libraries typically have their own directories. System.out.println("the current value of PATH is: {" +
p.getProperty("PATH")+"}");
System.out.println("LIBPATH: {" +
System.getProperty("java.library.path")+"}");
gives the current value of PATH is:
{/home/hware/bin:/usr/local/bin:/usr/xpg4/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
/usr/ucb:/bin:/usr/bin:/home/hware/linux-bin:/usr/openwin/bin/:/usr/games/:
/usr/local/games:/usr/ccs/lib/:/usr/new:/usr/sbin/:/sbin/:/usr/hosts/:
/usr/openwin/lib:/usr/X11/bin:/usr/bin/X11/:/usr/local/bin/X11:
/usr/bin/pbmplus:/usr/etc/:/usr/dt/bin/:/usr/lib:/usr/lib/lp/postscript:
/usr/lib/nis:/usr/share/bin:/usr/share/bin/X11:
/home/hware/work/cdk/main/cdk/../bin:/home/hware/work/cdk/main/cdk/bin:.}
LIBPATH:
{/usr/lib/j2re1.3/lib/i386:/usr/lib/j2re1.3/lib/i386/native_threads:
/usr/lib/j2re1.3/lib/i386/client:/usr/lib/j2sdk1.3/lib/i386:/usr/lib:/lib}
on my linux workstation. (java added all those execpt /lib and /usr/lib). But these two lines aren't the same on window either:
This system is windows nt the current value of PATH is:
{d:\OrbixWeb3.2\bin;D:\jdk1.3\bin;c:\depot\cdk\main\cdk\bin;c:\depot\
cdk\main\cdk\..\bin;d:\OrbixWeb3.2\bin;D:\Program
Files\IBM\GSK\lib;H:\pvcs65\VM\win32\bin;c:\cygnus
\cygwin-b20\H-i586-cygwin32\bin;d:\cfn\bin;D:\orant\bin;C:\WINNT\system32;C:\WINNT;
C:\Program Files\Dell\OpenManage\Resolution Assistant\Common\bin;
d:\Program Files\Symantec\pcAnywhere;
C:\Program Files\Executive Software\DiskeeperServer\;C:\Program Files\Perforce}
LIBPATH:
{D:\jdk1.3\bin;.;C:\WINNT\System32;C:\WINNT;d:\OrbixWeb3.2\bin;D:\jdk1.3\bin;
c:\depot\cdk\main\cdk\bin;c:\depot\cdk\main\cdk\..\bin;
d:\OrbixWeb3.2\bin;D:\Program Files\IBM\GSK\lib;
H:\pvcs65\VM\win32\bin;c:\cygnus\cygwin-b20\H-i586-cygwin32\bin;d:\cfn\bin;
D:\orant\bin;C:\WINNT\system32;
C:\WINNT;C:\Program Files\Dell\OpenManage\ResolutionAssistant\Common\bin;
d:\Program Files\Symantec\pcAnywhere;
C:\Program Files\Executive Software\DiskeeperServer\;C:\Program Files\Perforce} -
Forget to set environment variable export SAPINST_USE_HOSTNAME
Dear Experts
we have installed the SAP ECC6.0 EhP4 in HACMP environment with AIX6.1 ,Power HA cluster6.1, oracle 11g database
the problem is while installing the CI and ASCS and Dialog instance I missed to set environment variable
export SAPINST_USE_HOSTNAME = <virtual Host Name> and while starting the sap-inst also i didn't start as like
./sapint SAPINST_USE_HOSTNAME = <virtual Host Name>,Now i am facing problem while doing cluster fail over to another node
Node A host Name is not reflecting in Node B and I am not able to start the SAP with host name of Node A
in AIX6.1 in IBM Admin they didnt give any virtual host name they said that they have configured the cluster with two service IP there is no virtual IP in AIX6.1
please help me out how to resolve this host Name issue and to start the SAP in Node B
Thanks in Advance
krishnaHi Krishna,
I dont agree with the AIX 6.1 having no virtual ip's, because i recently installed a HA instance with ASCS, SCS & also ERS on 6.1
to answer your questions:-
"can you tell is this correct setup or anything we did mistake for file system setup and installation"
This depends on what your requirement is. Typically a cluster will have Oracle on one host and SAP on the other host. Ill explain the VCS concept, so you will have a better understanding.
Lets consider Node1 & Node2. Now each node will have a physical IP and a virtual IP. The Virtual IP will be associated with a set of file systems. For example /oracle will be associated to virtual ip lets say "xyzDB" & the /usr/sap/<sid>, TRANS & sap mount will be associated with virtual ip lets say "abcCI". Now when the cluster fails over to which ever node, these file systems will still be associated with their respective virtual ip's.
So, the start profile will always have START_DVEBMGS_abcCI. Irrespective of which Node the sap is in, when you start the SAP, it will use the virtual hostname and start up SAP. I hope your getting the concept.?
Coming back to the setup, since you have ASCS, Oracle , CI & a dialog instance. Im not sure what file systems you have associated with VCS groups. Can you give command "hastatus -sum" and post the output?
Regarding your other question
"this file system is moving to Node B but while starting SAP on Node B host Name is not reflecting and SAP is not coming up due to there hostname didnt change in Node B,, can you advice me please ,,"
This is inline with what i explained above for cluster mechanism. The physical IP will not change. It is only the virtual IP that is associated with a set of file systems.
Ill give you one more example, Consider the parameter rdisp/mshost = <> . What should this be? Physical host or Virtual host?? :-) .It should be Virtual. Because the CI can be in Node1 or Node2. If we give the physical host, then if the SAP fails over to the other node. How will it start up? because the profiles still say the message server is in the other host... Getting my point?
Regards,
Shanser -
Environment variables - where do we set them?
We recently upgraded to Essbase 6.2.2 on AIX.Everytime we run a script our logs are saying:ESSLANG environment variable not setUsing default locale "English_UnitedStates.US-ASCII@Binary"...It is not causing a problem, but I was trying to find out where to set these 'environment' variables. I have looked for documentationbut cannot find any. I am just curious what other variables wemay not have set. Any info you have would be great!Thanks,Diane
Normally in the .profile of the user arbor. However read the Configuration Guide for more details!Alexandru Draghici
-
X11 environment variables on MacBook Pro
Hi
I have just got my new MacBook Pro and have installed Gimp to run using x11 that came on the apple installation disks however I can't seem to get the xterm to configure correctly.
GIMP is installed under /sw/bin but the default PATH for x11 does not include this location so I added PATH=$PATH:/sw/bin:/sw/sbin to a newly created .bash_profile. But x11 did not seem to use this file although terminal worked OK.
After doing a bit of research, I then created a .bashrc file with the PATH defined and changed the .bash_profile to source .bashrc with no other entries.
Again this worked OK for Terminal but now when I type 'echo $Path' in an x11 xterm the PATH displays two entries for /sw/bin & /sw/sbin. i.e.
$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/sw/bin:/sw/sbin:/sw/bin:/sw/sbin
Any ideas why? and how can I correct it?
Macbook Pro 17 Mac OS X (10.4.9)Sorry this was a bit brief; I think I was still asleep when I typed it.
The reasons are these:
1. Many fink programs require environment variables and other settings. When you source that init.sh file, it ensures everything is set up to work out of the box. (Among the things it does is to in turn source every relevant file in /sw/etc/profile.d -- take a look in it to see what, if anything, is in there). There is also some code to keep your path trimmed properly, so you don't get repeats pasted on.
2. Bash is unique in that either .bashrc or .bash_profile, but not both, get sourced. In a rooted X11 environment, everything works properly, but on OS X, where X11 is "rootless," it leads to unexpected behavior like what you saw. As long as you put everything into one file and then tell the other one to source its contents, you should be ok.
You can also run X11 stuff from Apple's terminal, provided you somewhere in a startup file have something to set the DISPLAY variable, usually to .0.
I've put more discussion of these things here -
Error in setting environment variable
hi
Please note JKit is where my jdk1.3 is stored(i.e instead of jdk1.3 folder its JKit folder)... i have gone thru the similar threads but with no success.
SET
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;D:\Jkit\bin;D:\Jkit\lib;D:\Oracle\bin;"C:\PROGRAMFILES\ORACLE\JRE\1.1.7\BIN";D:\JKit\Jre\Bin;
SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
SET CLASSPATH=c:\JavaWebServer2.0\lib\servlet.jar;c:\JKit\lib;
SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29;
SET JAVA_HOME=D:\Jkit;
The error i get after running autoexec.bat and then tomcat/bin/startup is as follows..
The CATALINA_HOME environment variable is not defined
This environment variable is needed to run this program
please HELP!!.THANKSHi
Very many thanks for ur solution.. i actually hadset the environment variables spacce..but when i execute the autoexec.bat file i dont get any error(out of env space)..but when i run the startup.bat file i get from the command prompt, i get the foll error.
This is my Autoexec.bat
SET JAVA_HOME=D:\Jkit\bin
SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29\bin
SET PATH=D:\Jkit\bin;C:\WINDOWS;C:\WINDOWS\COMMAND;
SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
THE FOLLOWING IS THE ERROR I GET WHEN I RUN STARTUP.BAT UNDER TOMCAT'S BIN UNDER THE COMMAND PROMPT
D:\tomcat\jakarta-tomcat-4.1.29\bin>startup
Syntax error
Out of environment space
Out of environment space
Out of environment space
Using CATALINA_BASE: D:\tomcat\jakarta-tomcat-4.1.29
Using CATALINA_HOME: D:\tomcat\jakarta-tomcat-4.1.29
Using CATALINA_TMPDIR: D:\tomcat\jakarta-tomcat-4.1.29\temp
Using JAVA_HOME: D:\Jkit
Out of environment space
Out of environment space
Invalid switch - -DJAVA.ENDORSED.DIRS=D:\TOMCAT\JAKARTA-TOMCAT-4.1.29\COMMON\ENDORSED
I even set JAVA_HOME AND CATALINE_HOME to the \bin dir respectively..
still i get the same error
As given under the tomcat installation documentation (RUNNING.txt), i set the space for environment space under the Memory tab, for startup and shutdown.bat files, it creates a shortcut for running the resp .bat files, running startup.bat file i get,CATALINA_HOME VAR HAS NOT BEEN SET PROPERLY, THIS OCCURS FOR BOTH TOP LEVEL DIR SETTING AND /bin DIR SETTING of CATALINE_HOME IN autoexec.bat
PLEASE HEL, I HAVE BEEN TRYING TO CONFIGURE IT FOR THE PAST DAYS BUT WITH NO SUCCESS, DONT KNOW WHERE I AM GOING WRONG..PLEASE HELP -
BKI0008E: The environment variable BI_CALLER is not set correctely. The cur
Hi All,
I have configured backint for backup of maxdb for content server 640. I configured it as per the documents available, created the configuration fiale and the parameter file. Created the backup medium in dbmgui.
Now when i try to run the backup using the pipe am getting the above mentioned error.
Please find below the dbm.ebp log for the same...
more dbm.ebp
2009-10-22 02:06:08
Setting environment variable 'TEMP' for the directory for temporary files and pi
pes to default ''.
Setting environment variable 'TMP' for the directory for temporary files and pip
es to default ''.
Using connection to Backint for MaxDB Interface.
2009-10-22 02:06:08
Checking existence and configuration of Backint for MaxDB.
Using configuration variable 'BSI_ENV' = '/sapdb/CFC/lcbackup/apoatlas.env'
as path of the configuration file of Backint for MaxDB.
Setting environment variable 'BSI_ENV' for the path of the configuration fil
e of Backint for MaxDB to configuration value '/sapdb/CFC/lcbackup/apoatlas.env'
Reading the Backint for MaxDB configuration file '/sapdb/CFC/lcbackup/apoatl
as.env'.
Found keyword 'BACKINT' with value '/sapdb/CFC/db/bin/backint'.
Found keyword 'INPUT' with value '/tmp/backint4sapdbCFC.in'.
Found keyword 'OUTPUT' with value '/tmp/backint4sapdbCFC.out'.
Found keyword 'ERROROUTPUT' with value '/tmp/backint4sapdbCFC.err'.
Found keyword 'PARAMETERFILE' with value '/sapdb/CFC/lcbackup/param.cfg'
Found keyword 'TIMEOUT_SUCCESS' with value '1800'.
Found keyword 'TIMEOUT_FAILURE' with value '1800'.
Finished reading of the Backint for MaxDB configuration file.
Using '/sapdb/CFC/db/bin/backint' as Backint for MaxDB program.
Using '/tmp/backint4sapdbCFC.in' as input file for Backint for MaxDB.
Using '/tmp/backint4sapdbCFC.out' as output file for Backint for MaxDB.
Using '/tmp/backint4sapdbCFC.err' as error output file for Backint for MaxDB
Using '/sapdb/CFC/lcbackup/param.cfg' as parameter file for Backint for MaxD
B.
Using '1800' seconds as timeout for Backint for MaxDB in the case of success
Using '1800' seconds as timeout for Backint for MaxDB in the case of failure
Using '/sapdb/data/wrk/CFC/dbm.knl' as backup history of a database to migra
te.
Using '/sapdb/data/wrk/CFC/dbm.ebf' as external backup history of a database
to migrate.
Checking availability of backups using backint's inquire function.
Check passed successful.
2009-10-22 02:06:08
Checking medium.
Check passed successfully.
2009-10-22 02:06:08
Preparing backup.
Setting environment variable 'BI_CALLER' to value 'DBMSRV'.
Setting environment variable 'BI_REQUEST' to value 'NEW'.
Setting environment variable 'BI_BACKUP' to value 'FULL'.
Constructed Backint for MaxDB call '/sapdb/CFC/db/bin/backint -u CFC -f back
up -t file -p /sapdb/CFC/lcbackup/param.cfg -i /tmp/backint4sapdbCFC.in -c'.
Created temporary file '/tmp/backint4sapdbCFC.out' as output for Backint for
MaxDB.
Created temporary file '/tmp/backint4sapdbCFC.err' as error output for Backi
nt for MaxDB.
Writing '/sapdb/CFC/lcbackup/pipe1 #PIPE' to the input file.
Writing '/sapdb/CFC/lcbackup/pipe2 #PIPE' to the input file.
Prepare passed successfully.
2009-10-22 02:06:08
Creating pipes for data transfer.
Creating pipe '/sapdb/CFC/lcbackup/pipe1' ... Done.
Creating pipe '/sapdb/CFC/lcbackup/pipe2' ... Done.
All data transfer pipes have been created.
2009-10-22 02:06:08
Starting database action for the backup.
Requesting 'SAVE DATA QUICK TO '/sapdb/CFC/lcbackup/pipe1' PIPE,'/sapdb/CFC/
lcbackup/pipe2' PIPE BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'BACKINT_ONLINE1'' from
db-kernel.
The database is working on the request.
2009-10-22 02:06:09
Waiting until database has prepared the backup.
Asking for state of database.
2009-10-22 02:06:09 Database is still preparing the backup.
Waiting 1 second ... Done.
Asking for state of database.
2009-10-22 02:06:10 Database is still preparing the backup.
Waiting 2 seconds ... Done.
Asking for state of database.
2009-10-22 02:06:12 Database has finished preparation of the backup.
The database has prepared the backup successfully.
2009-10-22 02:06:12
Starting Backint for MaxDB.
Starting Backint for MaxDB process '/sapdb/CFC/db/bin/backint -u CFC -f back
up -t file -p /sapdb/CFC/lcbackup/param.cfg -i /tmp/backint4sapdbCFC.in -c >>/tm
p/backint4sapdbCFC.out 2>>/tmp/backint4sapdbCFC.err'.
Process was started successfully.
Backint for MaxDB has been started successfully.
2009-10-22 02:06:12
Waiting for end of the backup operation.
2009-10-22 02:06:12 The backup tool is running.
2009-10-22 02:06:12 The database is working on the request.
2009-10-22 02:06:14 The backup tool process has finished work with return co
de 2.
2009-10-22 02:06:17 The database is working on the request.
2009-10-22 02:06:27 The database is working on the request.
2009-10-22 02:06:42 The database is working on the request.
2009-10-22 02:07:02 The database is working on the request.
2009-10-22 02:07:15 Canceling Utility-task after a timeout of 60 seconds ela
psed ... OK.
2009-10-22 02:07:17 The database has finished work on the request.
Receiving a reply from the database kernel.
Got the following reply from db-kernel:
SQL-Code :-903
The backup operation has ended.
2009-10-22 02:07:17
Filling reply buffer.
Have encountered error -24920:
The backup tool failed with 2 as sum of exit codes. The database request
was canceled and ended with error -903.
Constructed the following reply:
ERR
-24920,ERR_BACKUPOP: backup operation was unsuccessful
The backup tool failed with 2 as sum of exit codes. The database request
was canceled and ended with error -903.
Reply buffer filled.
2009-10-22 02:07:17
Cleaning up.
Removing data transfer pipes.
Removing data transfer pipe /sapdb/CFC/lcbackup/pipe2 ... Done.
Removing data transfer pipe /sapdb/CFC/lcbackup/pipe1 ... Done.
Removed data transfer pipes successfully.
Copying output of Backint for MaxDB to this file.
Begin of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)-
Data Protection for mySAP(R)
Interface between BR*Tools and Tivoli Storage Manager
- Version 5, Release 4, Modification 0.0 for Linux x86_64
Build: 303 compiled on Nov 16 2006
(c) Copyright IBM Corporation, 1996, 2006, All Rights Reserved.
BKI0008E: The environment variable BI_CALLER is not set correctely. The
current value is "DBMSRV"
usage:
backint -p <par_file> [-u <user_id>] [-f <function>]
[-t <type>] [-i <in_file>] [-o <out_file>] [-c]
where:
<user_id> backint utility user
<function> backup | restore | inquire | password | delete
<type> file | file_online
<par_file> parameter file for backup utility
<in_file> name of a text file that defines the objects
default: STDIN
<out_file> Pool for processing messages and the results
of the executed function.
default: STOUT
BKI0020I: End of program at: Thu 22 Oct 2009 02:06:14 AM EDT .
BKI0021I: Elapsed time: 01 sec .
BKI0024I: Return code is: 2.
End of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)---
Removed Backint for MaxDB's temporary output file '/tmp/backint4sapdbCFC.out
Copying error output of Backint for MaxDB to this file.
Begin of error output of Backint for MaxDB (/tmp/backint4sapdbCFC
.err)----
End of error output of Backint for MaxDB (/tmp/backint4sapdbCFC.e
rr)----
Removed Backint for MaxDB's temporary error output file '/tmp/backint4sapdbC
FC.err'.
Removed the Backint for MaxDB input file '/tmp/backint4sapdbCFC.in'.
Have finished clean up successfully.Also, is there any specification about the user permissions and about how the backup should be run?
-
I am using Flash Builder 4.7 to build an Actionscript AIR project. The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive). I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
[Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile. The Actionscript compiler just won't find the png files however I specify the path. I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
[Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"] works with FLEX but not Actionscript.
So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?I managed to find a solution on Windows which was to use symlinks and absolute paths. You an basically point one directory to another so I did something like:
mklink c:\developer_resources c:/the/local/path/to/my/resources
and then reference all resources as c:\developer_resources\...
Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work.
This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows
Maybe you are looking for
-
WHAT? Adobe FLash Player Security
I am building a photography web site with flash and I found a really cool slide show extension plug in (www.slideshowpro.com) were can easily upload and update my portfolio slide shows. when I publish out to HTML, I test it in a browser and I get thi
-
HT1296 Transfer of Calendar from Phone to Computer
I want to transfer my calendar from my phone as it is the most current to my computer. If I follow this article, will it work. I do NOT want to replace my phone's calendar with the one on my computer as it's outdated.Please advise. Thanks!
-
Desktop picture will not stop changing...
I selected the 'change picture every 5 seconds', unselected it, but it won't stop changing. I even deleted some .plist files found in another thread, but to no avail. What can I do?
-
Scanning into photoshop CS5.1
Photoshop CS5 does not list my scanner in the File/ Import menu. Is it a twain problem. Anybody know of a fix?
-
Need oracle 10g software to install on OS windows 7
Hi, Need oracle 10g software for install on OS windows 7.