Z400 idea system environment Variable
Hello guys!
I messed up just the value of the path variable and the laptop is much slower.
Can someone paste here the value of the default Variable in the variable "Path"?
If you want to help, but do not know how to follow this:
Go to the research and the variable type.
Click configuration, and then you will see 2 icons.
Click Edit system environment variables.
The bottom of the pop-up window there is a button called Environment Variables.
See you a large number of variables, search for the path, click on edit and copy the 'Value of the Variable' field and paste it here!
Thanks in advance!
Just used a restored...
Difficulty if someone needs it.
Tags: Lenovo Notebooks
Similar Questions
-
Windows system environment variables in "Sql * more»
Can I use/reference of Windows system environment variables in "Sql * more?
For example, I want to create sql-script runs in the database server computer that variable is "ORA_HOME", uses this value to perform a few sentences of sql/plsql.
Oracle 10g personal, Windows 7.
Edited by: CharlesRoos the 12.11.2010 17:28CharlesRoos wrote:
The business problem:
I created 2 databases in my computer. The two databases needs storage created by a script. The names of data files (.dbf files) of storage are the same for the two database. The two database has its own directory, where it holds data for the moment files. At the moment the data files for Database1 are in the folder something like '% ORACLE_HOME%"\oradata\%databasename1%\*.dbf and the second base of data has its data files in the other folder, somewhere '' % ORACLE_HOME%"\oradata\%databasename1%\*.dbf'. Now I want the script to create the tablespace called "INDX" with the same data file name "indx1.dbf" in the two database. If in the two documents mentioned the 'indx1.dbf' file must be created by the script. I think the script must do following:1. get ORACLE_HOME. 2. connect to database "databasename1" 3. EXECUTE IMMEDIATE "Create TableSpace INDX....file=%ORACLE_HOME% || databasename1 || indx1.dbf" 4. connect to database "databasename2" 5. EXECUTE IMMEDIATE "Create TableSpace INDX....file=%ORACLE_HOME% || databasename2 || indx1.dbf"
I don't have database Oracle close more, if the code was pseudo-code.
---
I do not understand how to use?-shortcut.
OK, my first impression is ' why must even be scripted? Creation of new spaces of storage is usually a one-off operation.
But what side this substitution of sqlplus command line variables. This example is Linux, but works on Windows with the change in the way environment variables are referenced:
* echo nix - $myvariable
Windows - echo myvariable %First of all, sqlscript to create the TS. Note the use of the substitution variable '& 1 '.
{code}
[oracle@vmlnx01 ~] $ cat makets.sql cat
set echo on the comments on check on trimsp on
Guest & 1
--
CREATE TABLESPACE EDSTEST PETIT_FICHIER
DATAFILE ' / ora01/oradata/&1/edstest.dbf'
SIZE 5 M
REUSE
AUTOEXTEND ON
NEXT 1280K
MAXSIZE 32767M
LOGGING
LOCAL MANAGEMENT MEASURE
SEGMENT SPACE MANAGEMENT AUTO
;
--
Drop tablespace edstest
including content and data files
;
output
{code}Thus, the OS invites: note that the @ is separated by a space, which makes a parm from command line instead of the part of the connection string
{code}
[oracle@vmlnx01 ~] $ export myparm = vlnxora1
[oracle@vmlnx01 ~] $ sqlplus system/pswd @makets $myparmSQL * more: Release 10.2.0.4.0 - Production on Fri Nov 12 18:13:05 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing optionsSQL > prompt & 1
vlnxora1
SQL >--
SQL > CREATE TABLESPACE EDSTEST PETIT_FICHIER
2 DATAFILE ' / ora01/oradata/&1/edstest.dbf'
3 SIZE 5 M
4 REUSE
5 AUTOEXTEND ON
6. THE NEXT 1280K
7 MAXSIZE 32767M
8 LOGGING
MEASURE 9 LOCAL MANAGEMENT
10 SEGMENT SPACE MANAGEMENT AUTO
11;
2 old: DATAFILE ' / ora01/oradata/&1/edstest.dbf'
2 new: DATAFILE ' / ora01/oradata/vlnxora1/edstest.dbf'Created tablespace.
SQL >--
SQL > drop tablespace edstest
2 content and data files including
3;Tablespace has fallen.
SQL > exit
Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.4.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@vmlnx01 ~] $
{code} -
Backup of the System Environment Variables
How can I save variables on a windows system? The HYPERION_HOME and EPM_ORACLE_HOME system variables the same?If it's windows, then I find the best way is to either back up the registry or the part of registry, environment variables are stored in the registry to: -.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\EnvironmentSo, if you go to start > run > regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment > right, click Export, save it out in a registry file.
The registry can also be exported from the command line, for example to go to a command prompt and type
REG EXPORT /?See you soon
John
http://John-Goodwin.blogspot.com/ -
How to get the active directory and environment variables
Hello
1 - is there a global variable to get the real (project, where is ORD and DSQ files) directory?
2.-y there a way to get the directory of the user as the reading of the operating system environment variables?
Thanks in advance.
PD: I use Dasylab12
Yes, use ropes of system
For example, ${DATA_FOLDER}.
For a list, the simplest method is to right click and select global chains. The lower half of the dialog box lists the system strings, including the date, time, name of the worksheet, with or without a path, the DEFAULT folders for the spreadsheet, data, other, black box, etc.
-
If the Environment Variable in Vista
How to change the Environment Variable in Vista? ... I could do with XP using Control Panel > performance and Maintenance, but could not find the area revealing in Vista.
Hello
When you see something surrounded of % this means there is a system environment Variable
together who will take the place of it. SystemRoot where Windows so for most, it will be
C:\Windows however if Windows is on drive D: it would be usually be D:\Windows.Start - type in the search box-> explorer.exe SystemRoot
Enter and see where it leads you.
Another is %UserProfile%, which is the currently logged-on user
Start - type in the search box-> explorer.exe %USERPROFILE%
Enter and see where it leads you.
With the help of people and other environment variables, commands can be written so that they will apply no.
matter where Windows to installed or that the user connects (for the above examples).To view the current system Environment Variables:
Start - type in the search-> CMD box find top - make a right click on - RUN AS ADMIN
When the COMMAND PROMPT opens it will look something like
C:\Windows\System32 >
Type SET and press on enter and you will see the present commands.
to see the command SET type in ALL of the structure? and press on enter – the space between T and.
=======================================================
Environment variables
http://vistaonwindows.com/environment_variables.htmlCreate your own Environment Variables
http://Lifehacker.com/259018/create-your-own-environment-variables-for-quick-folder-navigationChange a path of users in Windows Vista: Vista Path Environment Variable
http://www.question-defense.com/2009/06/22/modify-a-users-path-in-Windows-Vista-Vista-path-environment-variableEnvironment variable
http://en.Wikipedia.org/wiki/Environment_variableI hope this helps.
Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right. -
Windows 7 - I messed up my way in advanced system settings > Environment Variables > System Variables. no known record point. Can I restore the correct values without using Lenovo OneKey Recovery?
You can start with a setting of the main path, but you have installed may well have added directories in the system path.
It is at least that you start:
Path=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\WindowsPowerShell\v1.0\;
To do this, you could add (if you use any Windows Live stuff)-
C:\Program Files\Common Files\Microsoft Shared live; C:\Program Files (x 86) \Common Files\Microsoft Shared live; C:\Program Files (x 86) \Windows Live\Shared;
Something else will depend on your particular system and facilities.
-
Hey guys
I need help, in my company trying to learn switches I flashed my switch all :(
I now get this error
The system is unable to boot automatically. The BOOT
environment variable must be set with a bootable
image.I downloaded the c2950-i6q4l2 - tar.121 - 22.EA14.tar for the switch, but I'm unclear on how to load the catalyst 2950 only
switch: dir flash:
Directory of flash: /.3 - rwx 269
env_vars 7739904 bytes available (1536 bytes used)
switch: start
Loading ""...: permission denied ".Error loading «»
Interrupt within 5 seconds to cancel the startup process.
Boot process failed...
switch: start
Loading ""...: permission denied ".Error loading «»
Interrupt within 5 seconds to cancel the startup process.
Boot process failed...
switch:C2950 Boot Loader (C2950-HBOOT-M), Version 12.1 (11r) EA1, RELEASE SOFTWARE (fc1)
Updated Tuesday 22 July 02 17:18 by antonino
WS-C2950-24 from...
Basic Ethernet MAC address: 00:15:2 b: 46:7 b: 00
XMODEM file system is available.
Initializing the Flash...
flashfs [0]: 1 files, directories 1
flashfs [0]: 0 orphaned files, orphaned directories 0
flashfs [0]: Total number of bytes: 7741440
flashfs [0]: used bytes: 1536
flashfs [0]: available bytes: 7739904
flashfs [0]: fsck flashfs takes 4 seconds.
.. .done boot flash.
Boot sector file system (bs :) installed, isfd: 3)
Setting Filesystem block (pb :) installed, isfd: 4)
Loading ""...: permission denied ".Error loading «»
Interrupt within 5 seconds to cancel the startup process.
Boot process failed...The system is unable to boot automatically. The BOOT
environment variable must be set with a bootable
image.switch:
switch:
switch: flash
Initializing the Flash...
... The flash is already initialized.
switch: dir /.
Unknown cmd: dir /.
switch: dirList of currently registered file systems:
Flash [0]: (reading / writing)
XMODEM [1]: (read-only)
NULL [2]: (reading / writing)
BS [3]: (read-only)switch: 0
Unknown cmd: 0
switch: flash_init
switch: load_helper
switch: dir flash:
Directory of flash: /.2 - rwx 269
env_vars 7739904 bytes available (1536 bytes used)
switch:Hello
It seems that the image is not in the flash memory. Do you know where you downloaded the image? Once we know, we can understand what statement of startup, you need to do to make it start correctly.
Thank you
Garrett
-
In the Environment Variables window, it reads:
For Brad user variables
Value of the variable
TEMP %USERPROFILE%\AppData\Local\Temp
TMP %USERPROFILE%\A[[Data\Local\Temp
New... Edit... Delete
System variables
Value of the variable
C:\Windows\TEMP TEMP
TMP C:\Windows\TEMP
THE USER NAME SYSTEM
Robert C:\Windows
PROCESSOR_... 15
PROCESSOR_... 4 c 02
PSModulePath C:\Windows\System32\WindowsPowerS...
Path C:\Windows\system32; C:\Womdpws,C:\...
PATHEXT .COM; EXE; BEATS; CMD;. VBS;. VBE;. JS;...
PROCESSOR_A... x 86
PROCESSOR_ID... x 86 family 15 model 2 Stepping, Aut 76...
ComSpec C:\Windows\system32\cmd.exe
PP_NO_HOST_C... NO.
NUMBER_0F_P... 1
Windows_nt OS
New... Edit... Delete
OK Cancel
What would the results be for ME and my computer by installing Windows 7 Home Premium 64-bit (drive) after having to re - install my 32-bit Version of Windows 7 Home Edition Premium, I bought some time ago?
Brad
Check the user accounts in the Control Panel-user accounts and family safety-manage accounts
It may be that the user is called SYSTEM for some reason any. You can change the account name but the path of the user will remain the same.
Example: change the SYSTEM to Brad, the path to the user of Brad will still be c:\users\SYSTEM
To check if your processor is 32 bit or 64 bit
Open the Control Panel
Select system and security
Select System
In the System section it check the line System Type
That should tell whether the operating system is 32 or 64 bits and if the processor is 32 bit or 64 bit.
-
Environment variable PATH exceeds the length of the operating system limit
Hello everyone
I am trying to install Oracle 11 g client on Windows 7
I get below error when checks prior to Installation
= Error description =.
Environment variable: 'PATH' - this test checks to see if the length of the 'PATH' environment variable does not exceed the recommended time.
Expected value
: 1023
Real value
: 1069
List of errors:
-
PRVF-3929: Add the Oracle binary location to the PATH environment variable will exceed the length limit of the BONES of "1023" of the variable on the node 'CNF0123H5R' - Cause: the installer must update the environment variable PATH to include the value of '% ORACLE_HOME%/bin';. However, this will cause a path exceeds the maximum allowed length that allows the operating system. -Action: Make sure the sum of the length of your current PATH environment variable and that "% ORACLE_HOME%/bin;" does not exceed the limit of the operating system. Restart Setup after correcting the value of environment variable.
=============
How to solve this error or I would say rather alert. I do not want to proceed with the installation, ignore him.
What are the risks to ignore it.
Thank you
SAPHDo you mean that the removal of the unnecessary versions sql server solve the problem?
It of a serious issue or are you just trying to make fun of me?
For you rhetorical question: if I would have taken it without being the solution, I wrote this down?-----------
Sybrand Bakker
Senior Oracle DBA -
Environment variable folder is different when it is shown in the console and read by programs
Hi all
On our Windows Server 2008 machine, the TEMP and TMP environment variables all point to C:\Users\
\AppData\Local\Temp as seen in system properties. However, they appear like C:\Users\\AppData\Local\Temp\3 in Windows console command line. I also feel the same behavior in Windows Vista. This causes problems in our program. I don't know whence the '3' subdirectory and why these environment variable appear differently in the console.You have an idea about this problem? Thank you very much in advance!
Lini
http://www.Microsoft.com/windowsserver2008/en/us/community.aspx
http://www.Microsoft.com/windowsserver2008/en/us/forums-blogs.aspx
Server 2008 Forums at the link above.
See you soon. Mick Murphy - Microsoft partner
-
I delete an environment variable, but it returns to the restart
Hi all
I'm on a Windows 7 Professional machine.
A little while back, I installed a software (PTC Creo2). This software adds an environment variable, the user to my account variables. This mess up my windows environment variable installed cygwin, so I removed it (using the control panel-> system-> System Properties-> Advanced-> supprimer delete Environment Variables, select HOME,).
Then, everything works fine, until I have to restart. When I reboot, returns the environment variable. I looked in the registry and see nothing there.
Any ideas on where it is prepared, how to remove permanently?
Thank you
Heather MyersThanks for the comments. I mentioned a restart in Mode safe because in Safe Mode Windows starts without the various startup programs. It is a valuable tool when stalking the misconduct of applications such as Creo.
-
ORA-07217: sltln: environment variable cannot be evaluated.
Hi all;
DLOG = 'date + "a_ hour" ' export DLOG
RMAN > backup backupset incremental compressed level 0 DATABASE FORMAT ' / u04/oradata/PDT003/weekly_bkp_$ (DLOG)'
TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;
Please watch this above command of rman backup that I run with a bash script. It gives me following error.
channel ORA_DISK_1: starting piece 1 at 18 - SEP-15RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 18/09/2015 03:21:19
ORA-07217: sltln: environment variable cannot be evaluated.
No idea how to overcome? He took my 3 days from now.
Hello
1. it is tag format that should be unique - http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsubcl010.htm
Check out the demo below, the sound works perfectly for me
#! / bin/sh
DLOG = ' date + «a_ hour»»
Export DLOG
echo "setting of my variable: $DLOG"echo "launched backup."
RMAN target /.<>
backup incremental backupset compressed level 0 FORMAT of DATABASE ' / u03/backup/weekly_bkp_$ (DLOG)' TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;
"exit";
EXPRESSIONS OF FOLKLOREecho "Backup complete".
Wrong Code always my backup script - test scenario
=================================[backup oracle@primary] $ sh test.sh
My variable definition: a_19
Backup started
test.sh: line 9: DLOG: command not foundRecovery Manager: release 11.2.0.3.0 - Production Wed Sep 23 19:46 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID = 300203881)
RMAN >
From backup to 23-SEP-15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 37 type device = DISK
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u03/prod/prod_pr/system01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/sysaux01.dbf 00002
Enter a number of file datafile = 00005 name=/u03/prod/prod_pr/example01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/undotbs01.dbf 00003
Enter a number of file datafile = name=/u03/prod/prod_pr/users01.dbf 00004
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_ tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:55
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
including the current control in the backup set file
including current SPFILE in the backup set
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 23/09/2015-19:46:59
ORA-19504: cannot create the file ' / u03/backup/weekly_bkp_.
ORA-27038: created file already exists
Additional information: 1RMAN >
Complete recovery manager.
Backup is completeRMAN > list backup;
using the control file of the target instead of recovery catalog database
List of backup sets
===================Time of accomplishment BS key Type LV size device Type elapsed time
------- ---- -- ---------- ----------- ------------ ---------------
1 incr 0 M DISK 00:00:49 23-SEVEN 289,91.-15
BP key: 1 location: AVAILABLE Tablet: YES Tag: WEEKLY_BACKUP[backup oracle@primary] $ ls-l
Total 296888
-rwxr-xr-x. 1 oracle oinstall 317 23 Sep 19:45 test.sh
-rw - r-. 1 oracle oinstall 304005120 23 Sep 19:46 weekly_bkp_backup incremental backupset compressed level 0 DATABASE FORMAT ' / u03/backup/weekly_bkp_$ (DLOG)' TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;... WrongCode of $(DLOG)
Fix the Code - test scenario 2
==============
1 code .fixing now
2. change of $(DLOG)... $DLOGRMAN target /.<>
backup incremental backupset compressed level 0 DATABASE FORMAT ' / u03/backup/weekly_bkp_$ DLOG' TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;[backup oracle@primary] $ sh test.sh
My variable definition: a_19
Backup startedRecovery Manager: release 11.2.0.3.0 - Production Wed Sep 23 19:48:58 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID = 300203881)
RMAN >
From backup to 23-SEP-15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 27 type device = DISK
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u03/prod/prod_pr/system01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/sysaux01.dbf 00002
Enter a number of file datafile = 00005 name=/u03/prod/prod_pr/example01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/undotbs01.dbf 00003
Enter a number of file datafile = name=/u03/prod/prod_pr/users01.dbf 00004
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_a_19 tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:55
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
including the current control in the backup set file
including current SPFILE in the backup set
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on the ORA_DISK_1 channel to 23/09/2015-19:49:56
ORA-19504: cannot create the file ' / u03/backup/weekly_bkp_a_19.
ORA-27038: created file already exists
Additional information: 1RMAN >
Complete recovery manager.
Backup is complete
[backup oracle@primary] $ ls - tl
296924 total
-rw - r-. 1 oracle oinstall 304046080 Sep 23 19:49 weekly_bkp_a_19 - naming convention good code wise but not with the prospect of rman
-rwxr-xr-x. 1 oracle oinstall 315 23 September 19:48 test.shNow the format that we cannot solve the format fixed for rman, you need to change it if you see above error
Change to generated %U...systemTest case 3 - worked perfectly
RMAN target /.< eof="">
backup incremental backupset compressed level 0 FORMAT of DATABASE ' / u03/backup/weekly_bkp_${DLOG}_%U' WEEKLY_BACKUP TAG INCLUDE CURRENT CONTROLFILE;.. reason format[backup oracle@primary] $ sh test.sh
My variable definition: a_19
Backup startedRecovery Manager: release 11.2.0.3.0 - Production Wed Sep 23 19:53:02 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID = 300203881)
RMAN >
From backup to 23-SEP-15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 36 type device = DISK
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u03/prod/prod_pr/system01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/sysaux01.dbf 00002
Enter a number of file datafile = 00005 name=/u03/prod/prod_pr/example01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/undotbs01.dbf 00003
Enter a number of file datafile = name=/u03/prod/prod_pr/users01.dbf 00004
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_05qht9kv_1_1 tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:55
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
including the current control in the backup set file
including current SPFILE in the backup set
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_06qht9mm_1_1 tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:01
Backup finished 23-SEP-15RMAN >
Complete recovery manager.
Backup is complete
[backup oracle@primary] $[backup oracle@primary] $ ls - tl
Total 298188
-rw - r-. 1 oracle oinstall 1097728 23 Sep 19:58 weekly_bkp_a_19_08qht9v5_1_1
-rw - r-. 1 oracle oinstall 304242688 23 Sep 19:58 weekly_bkp_a_19_07qht9te_1_1
-rwxr-xr-x. 1 oracle oinstall 320 23 September 19:57 test.sh
It could be that useful now
-Pavan Kumar N
-
Linux Script - ORACLE_BASE environment variable is not shipped
Hello
I created a Linux script to execute a SQL statement and have several variables being passed in the script. The script executes the SQL statement with no problems, but I see the following message in the log file:
[/ u01/app/oracle/scripts/insert_asm_disk_usage.sh[8]:. : line 87: dbhome: not found
ORACLE_HOME = []? ORACLE_BASE environment variable since it is not defined
information is not available for the current user ID oracle.
You can set ORACLE_BASE manually if necessary.
The content of the script is:
#!/bin/ksh # Declare variables export ORACLE_SID=$1 export ORACLE_BASE=/u01/app/oracle BACKUP_MOUNT=$2 export ORAENV_ASK=NO . /usr/local/bin/oraenv . $HOME/.env_variables HOST_NAME=$(hostname -s) LOG_DIR=/${BACKUP_MOUNT}/logs umask 022 # Login to SQL Plus and execute the script sqlplus -s / @$SCRIPT_DIR/insert_asm_disk_usage.sql ${HOST_NAME}
As I said, the script and SQL statement runs without any problem.
Is there anyway around this message?
Thank you
Frank
Frank.anellia wrote:
I changed the script and way out the variables ORACLE_HOME and ORACLE_BASE instead of using .env_variables:
- #! / bin/ksh
- # Declaring variables
- export ORACLE_BASE = / u01/app/oracle
- export ORACLE_HOME=/u01/app/oracle/product/11.2.0/oracle
- export ORACLE_SID = $1
- BACKUP_MOUNT = $2
- Export ORAENV_ASK = NO
- . / usr/local/bin/oraenv
- #. $HOME/.env_variables
- HOST_NAME = $(nom d'hôte-s)
- LOG_DIR = / ${BACKUP_MOUNT} / logs
- MAIL_LIST =' [email protected]'
- umask 022
- # Connect to sqlplus and run the script
- sqlplus-s / @$ SCRIPT_DIR/insert_asm_disk_usage.sql ${HOST_NAME}
It's not really help make the portable script, but no idea why it does not work with what is in the .env_variables?
If you (you should be) using oraenv, do not set the oracle environment variables yourself. I put the following in each shell script that calls everything about oracle:
# ------------------------------------------------------------------------
# set the environment for ORACLE_SID
# We assume that parm $1 was the name of the database, we work collaboratively with
#
export PATH = / usr/local/bin: $PATH
export ORACLE_SID = $1
Export ORAENV_ASK = NO
. oraenv
unset ORAENV_ASK
I have seen the error that you report it. I do remember not the exact fix, but what I do recall is that I found exactly the fix actually reading the oraenv script, focusing on where this particular error message is issued, then back followed the logic of there. If I can do it, if you can, and it will be an exercise in good learning on several levels, not all of which relate to this specific problem. I think SB has already referred to this approach.
What else I remember correctly, is that the fix had to do with permissions... I think it was that I was connected the operating system with an account that did not have permissions to run certain process called oraenv. But again, read the script and you should be able to get by.
-
ARE does not recognize an environment variable
Hello comrades,.
On my Win 7 system, I redefined the HOME as C:\Users\bnks environment variable (by default, this is C:\Documents and Settings\Users\bnks).
I would like to save an FM file to C:\Users\bnks\Checkout\Test\, so in my extendscript, I defined the following variable:
docLib var = ' ~-Checkout-Test".
where the tilde (~) must be analyzed by extendscript as HOME environment variable (according to Chapter 3, 'Access to system files' in the JavaScript Tools Guide).
Unfortunately, the tilde is ignored when I try to save the file:
...
var DNAME = docLib + rName + "FM".
doc. Record (dname, saveParams, returnParams);
...
No idea why this is happening?
Thank you!!!
The tilde does not work for me or the other (FM11), but you can get the value of an environment variable with $. getenv():
docLib var = $.getenv ("HOME") + "\\Checkout\\Test\\";
-
Environment variables in the terminal
Hi all
Im trying to put my oracle environment variables in the linux terminal so that I can start SQL Plus.
What im trying to put seems to map in the directories on my system but I'm not able to run SQLplus... maybe im lack obvious somehting?
All ideas, follows a Terminal session:
[matt@localhost ~]$ export ORACLE_BASE=/u01/app/oracle [matt@localhost ~]$ export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 [matt@localhost ~]$ export ORACLE_SID=orcl [matt@localhost ~]$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib [matt@localhost ~]$ export PATH=$ORACLE_HOME/bin:$PATH [matt@localhost ~]$ export EDITOR=/usr/bin/vi [matt@localhost ~]$ sqlplus /nolog bash: sqlplus: command not found
Question not a basis data, but anyway...
Check if you have set the correct path.
$ls -l /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus
Maybe you are looking for
-
Hello I have a 6100 Pro Satellite under XP SP2 on Bios 1.90. A few days ago, he suddenly started running very slowly.According to the value of the ID of Intel, processor running at approximately 0.2 MHz, instead of the maximum speed of 1.8 MHz, with
-
DM1 - 4160ca screen well not curly
When you open the lid of my laptop dm1 - 4160ca, the screen would not fix itself well and freely shake a few degrees backward. I found the reason to be LCD screw was tightened on the hinges on both sides at halfway. Once fully tightened, the problem
-
Pavilion g6 2305tx: internal microphone problem for the note book!
my microphone internal books sometime works nut some tim does not althgu windows still detects it as its IDT card driver does not work normally. Should I have to replace my internal mic and where I find hp original pieces in Bangladesh.I Com, these A
-
XP SATA drivers for chipsets series 7
Hello I try to install Win XP Pro SP3 dualboot on existing Win 7 64 Home Premium HP pavilion. I read in the guide of Daniel on this forum but I can't find drivers SATA for Ivy Bridge chipset. Where can I find the SATA XP driver for the controller IDE
-
How to read 3 analog inputs simultaneously with 6070E?
Hello I wanted to read 3 analog signals simultaneously using cards of acquiring data NI PXI-6070E and Labview 2010. I can with success read and record the 1 signal (which you can see in the attachment), but do not know and can not find examples on ho