Академический Документы
Профессиональный Документы
Культура Документы
where DEFAULT_TABLESPACE='SYSTEM';
'ALTERUSER'||USERNAME||'DEFAULTTABLESPACEUSERS;'
-------------------------------------------------------------------
alter user SYS default tablespace USERS;
alter user SYSTEM default tablespace USERS;
alter user DBSNMP default tablespace USERS;
W-INCFLS-GDO-MNL-DB
itodba password: usp12f:i
oracle@[vfifsd1]/opt/oracle > . ./vfifsd1env
set ORACLE_SID=<instance name>
set local=<instance_name>
DBSPI
-----------------------
dbspicfg -e --->for checking stats
dbspicol off / dbspicol on <w or w/o instance>
mv /var/opt/OV/dbspi/dbmon.lock.5m /var/opt/OV/dbspi/dbmon.lock.5m08092011
------->renaming locks
sample:
dbspiadm verify -nw VCX0001R01
command:
dbspiadm conncheck -nw <instance name>
DBSPI CONFIG
====================
dbspicao -v -d -f -p
DBSPI ON/OFF
==========================
DBSPI CHECKING
-----------------------------------------------------------------------------------
--
/var/opt/OV/bin/instrumentation/dbspicam -m 3234 -r 1 -i VCXSQLPC01\SQLINSTANCE01
- m for metric (e.g. DBSPI9)
- r di ko alam
- lagay mo lng
- i for instance
-------
report-zeus[oracle]/t99/oradbf/BIV2/archivelogs # -->>nohup
/outils/archivelogsbackupBIV2.sh & //////////////// ARCHIVE LOG SCRIPT (Start sa
nohup!)
admin-zeus: -->>nohup
/outils/archivelogsbackupFBSDESKP.sh &
SHAREDPOOL FLUSH
-----------------------------------------------------------------------------------
--
alter system flush shared_pool;
SHORTCUTS
-----------------------------------------------------------------------------------
--
goto conversation
cd $DBA
DB STATUS
-----------------------------------------------------------------------------------
--
SOITEC
----------------------------
dbspicao -m6 -r1 -i FBERPP
SELECT
ROUND((A.SPACE_LIMIT / 1024 / 1024 / 1024), 2) AS FLASH_IN_GB,
ROUND((A.SPACE_USED / 1024 / 1024 / 1024), 2) AS FLASH_USED_IN_GB,
ROUND((A.SPACE_RECLAIMABLE / 1024 / 1024 / 1024), 2) AS FLASH_RECLAIMABLE_GB,
SUM(B.PERCENT_SPACE_USED) AS PERCENT_OF_SPACE_USED
FROM
V$RECOVERY_FILE_DEST A,
V$FLASH_RECOVERY_AREA_USAGE B
GROUP BY
SPACE_LIMIT,
SPACE_USED ,
SPACE_RECLAIMABLE;
RESIZING TEMP
-----------------------------------------------------------------------------------
--
alter database tempfile '/u02/P608/oradata1/VCENTER_TEMP01.dbf' resize 3300M
alter tablespace UNDOTBS1 add datafile '/db/icprd_db2/dd_idx/' size ung gusto mong
size
Alter tablespace<tablespacename to be extend> add datafile '<given
directory><filename>' size <max 30000M>
select v.name||:"SYS_B_00"||
lpad(to_char(sysdate,:"SYS_B_01"),:"SYS_B_02",:"SYS_B_03")||:"SYS_B_04"||
a.tbs1||:"SYS_B_05"||a.dtftotal||:"SYS_B_06"||b.datasize||:"SYS_B_07"||c.dtfcount
from
(select tablespace_name tbs1, sum(bytes)/:"SYS_B_08"/:"SYS_B_09" dtftotal
from dba_data_files group by tablespace_name) a,
(select tablespace_name tbs2, sum(bytes)/:"SYS_B_10"/:"SYS_B_11" datasize
from dba_extents group by tablespace_name) b,
(select tablespace_name tbs3, count(file_id) dtfcount
from dba_data_files group by tablespace_name) c,
v$database v
where a.tbs1=b.tbs2 and b.tbs2=c.tbs3
select maxquerylen,
to_char(begin_time, 'DD-MON-YYYY HH24:MI:SS'),
to_char(end_time, 'DD-MON-YYYY HH24:MI:SS')
from v$undostat where maxquerylen=(
select max(maxquerylen) from v$undostat);
LONG-RUNNING QUERY
====================================================
COLUMN percent FORMAT 999.99
==============
select TABLESPACE_NAME, BYTES_USED, BYTES_FREE,
BYTES_FREE/(BYTES_FREE+BYTES_USED) * 100 as FREE from
V$TEMP_SPACE_HEADER;
==oooooooooooooooooo==
================
alter database datafile '/db/vfcmsp1/temp/vfcmsp1_temp_01.dbf' AUTOEXTEND ON
MAXSIZE 1500M;
alter database tempfile '/db/vfcmsp1/temp/vfcmsp1_temp_01.dbf' AUTOEXTEND ON
MAXSIZE 1500M;
==Archive location==
SQL>archive log list
==listener log==
tail -1000000 listener_vfifsp1.log |grep TNS-
==Indoubt transaction==
select local_tran_id, state, FAIL_TIME,FORCE_TIME,RETRY_TIME from dba_2pc_pending
order by FAIL_TIME;
22 rows selected.
==Invalid Objects==
col owner for a30
col object_type for a30
col object_name for a30
col status for a30
select owner, object_type, object_name, status from dba_objects
where status != 'VALID'
order by owner, object_type;
==Open cursor==
select a.username, a.sid, b.value
from v$session a, v$sesstat b, v$statname c
where b.sid = a.sid
and c.statistic# = b.statistic#
and c.name = 'opened cursors current'
order by 3 desc;
select sum(b.value)
from v$session a, v$sesstat b, v$statname c
where b.sid = a.sid
and c.statistic# = b.statistic#
and c.name = 'opened cursors current'
==Blocked Process(SQL)==
IF EXISTS
(SELECT * FROM master.dbo.sysprocesses
WHERE spid IN (SELECT Blocked FROM master.dbo.sysprocesses))
SELECT spid, status, loginame=SUBSTRING(loginame,1,12),
hostname=substring(hostname, 1, 12),
blk=CONVERT(char(3), blocked),
dbname=SUBSTRING(DB_NAME(dbid), 1, 10), cmd, waittype
FROM master.dbo.sysprocesses
WHERE spid IN (SELECT blocked FROM master.dbo.sysprocesses)
AND blocked=0
ELSE
SELECT 'No blocking processes found!'
BLOCKING SESSION
================
SELECT
db.name DBName,
tl.request_session_id,
wt.blocking_session_id,
OBJECT_NAME(p.OBJECT_ID) BlockedObjectName,
tl.resource_type,
h1.TEXT AS RequestingText,
h2.TEXT AS BlockingTest,
tl.request_mode
FROM sys.dm_tran_locks AS tl
INNER JOIN sys.databases db ON db.database_id = tl.resource_database_id
INNER JOIN sys.dm_os_waiting_tasks AS wt ON tl.lock_owner_address =
wt.resource_address
INNER JOIN sys.partitions AS p ON p.hobt_id = tl.resource_associated_entity_id
INNER JOIN sys.dm_exec_connections ec1 ON ec1.session_id = tl.request_session_id
INNER JOIN sys.dm_exec_connections ec2 ON ec2.session_id = wt.blocking_session_id
CROSS APPLY sys.dm_exec_sql_text(ec1.most_recent_sql_handle) AS h1
CROSS APPLY sys.dm_exec_sql_text(ec2.most_recent_sql_handle) AS h2
GO
==Blocked Process(ORACLE)==
==Deadlock Query==
set linesize 160
col SQL_TEXT for a60
col ORACLE_USERNAME for a14
col object_name for a15
select a.SESSION_ID, c.SQL_TEXT, a.ORACLE_USERNAME, d.object_name, d.object_type
from v$locked_object a, v$session b, v$sqlarea c, dba_objects d
where (a.session_id=b.sid and c.address=b.sql_address) and d.object_id=a.object_id;
+==+Tablespace Verification+==+
SET LINESIZE 120
SET PAGESIZE 50
COL TBS_NAME form A25
COL EXT_MGMT form A5 HEADING "EXT|MGMT"
COL EXT_ALLOC FORM A5 HEADING "EXT|ALLOC"
COL SEG_MGMT FORM A5 HEADING "SEG|MGMT"
SELECT
t.tablespace_name TBS_NAME,
t.status
FROM dba_tablespaces t
WHERE TABLESPACE_NAME LIKE '%1010';
select tablespace_name,
(total_blocks*8192)/1024/1024 size_mb,
(used_blocks*8192)/1024/1024 used_mb,
(free_blocks*8192)/1024/1024 free_mb
from v$sort_segment
+++++++++++++++++sharepool+++++++++++++++++
select a.pool, sum(a.bytes/1048576) AS total, b.Free_Memory from v$sgastat a,
(select pool, sum(bytes/1048576) AS Free_Memory from v$sgastat where name
='free memory' group by pool) b
where a.pool = b.pool
group by a.pool, b.Free_Memory;
+++++++++++++++++sharepool+++++++++++++++++
++++++++++++++++++++++++++++++++
df -k /db/vflmnpp1/arch01/arch
df -k /db/vfpslp/arch2/arch
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
GLOBAL_NAME
-----------------------------------------------------------------------------------
-------------------------------------------------
VFWADD1
DBSPI-0066: Alert log size 31.10 MB too big for BIV2 >=30 MB. [Policy:DBMON-DBSPI-
0066-ARM]: ALERT LOG FILE TOO BIG
-----------------------------------------------------------------------------------
----------------------------------
su - oracle
BIV2
show parameter back (to show folder of alert log)
cd <alert log path>
ls -lrt
gzip alert_BIV2.log && touch alert_BIV2.log (zip alert log file and create a new
alert log file with the same name)
mv alert_BIV2.log.gz alert_BIV2.log07242011.gz (rename zipped file)
USE [RSCDATA]
GO
DBCC SHRINKFILE (N'RSCDATA_Log' , TRUNCATEONLY)
backup log RSCDATA with truncate_only
DBCC SHRINKFILE (N'RSCDATA_Log' , TRUNCATEONLY)
GO
USE [WSS_Content_Intranet_Projects_4]
GO
DBCC SHRINKFILE (N'WSS_Content_Intranet_Projects_4_log' , TRUNCATEONLY)
backup log WSS_Content_Intranet_Projects_4 with truncate_only
DBCC SHRINKFILE (N'WSS_Content_Intranet_Projects_4_log' , TRUNCATEONLY)
GO
USE [BICRM_UDD_MARKNAD]
GO
DBCC SHRINKFILE (N'BICRM_Marknad_UDD_log', 2)
BACKUP LOG BICRM_UDD_MARKNAD TO DISK='NUL:'
DBCC SHRINKFILE (N'BICRM_Marknad_UDD_log', 2)
GO
USE [CODitCIP]
GO
DBCC SHRINKFILE (N'CODitCIP_log' , TRUNCATEONLY)
backup log CODitCIP with truncate_only
DBCC SHRINKFILE (N'CODitCIP_log' , TRUNCATEONLY)
GO
1. check largest LDF File in the drive. It will be the truncated file.
2. Have it backed up with B&S team.
3. Upon confirmation of backup, truncate it [double check with database name &
transaction logs (from properties)].
SCRIPTS that were ran
---------------------
rman
connect target /
run {
allocate channel c1 type disk format '/dbcluster2/oraback/act11/db-%I-%T-%t.bkp';
backup as compressed backupset tag full_db_online incremental level 1 database
NOEXCLUDE plus archivelog;
delete noprompt archivelog all completed before 'sysdate-1';
};
FOR DBSPI10-82: Data logging failed for ORAOSM_METRICS. Make sure Performance
Agent is installed and running. (Error 256 occurred.)
-----------------------------------------------------------------------------------
-------------------------------------------------
1)Execute: find / -name opcagt
3) cd /usr/lpp/OV/bin/OpC/ OR /usr/lpp/OV/bin/opcagt -status
2)Execute: opcagt -status
Size of 1000000000
/var/lpp/OV/db2spi/log/
mv db2spi.log db2spi.log20120212 && touch db2spi.log
gzip db2spi.log201101011
For XP3
===================================================================================
===
(Go to RMAN first: RMAN target/)
delete noprompt force archivelog until time='sysdate-1';
!!!OR
Listener log file backup and zip. Start the listener control utility
lsnrctl
set current_listener lsnr_t625
show log_status
set log_status off
## here you rename the logfile
set log_status on
show log_status
## Later you can zip the renamed logfile
fuser /db/gobdprd/oracle_export/gobdprd/gobdprd111031.dmp
BY DATE
find . -type f -mtime +1250 -exec ls -l {} \;
MUTTLY (/var)
===================================================================================
=====================================
gzip -c hp_ora_backup_log.hist >
/db/gobdprd/index01/hp_ora_backup_db_hist_from_var/hp_ora_backup_log.hist.20111221.
gz
RPA SCRIPT
========================================================
db2 -tvf GRANT_ACCESS_SM_TROYKE.sql -z GRANT_ACCESS_SM_TROYKE.out
db2 -tvf ISSR_Switch_EXC_EXT_IVD_Validation_On11292011.sql -z
ISSR_Switch_EXC_EXT_IVD_Validation_On11292011.out
db2 -tvf ISSR_Switch_PRG_Validation_On11292011.sql -z
ISSR_Switch_PRG_Validation_On11292011.out
db2 -tvf CH_Switch_EXT_IVD_Validation_On11292011B.sql -z
CH_Switch_EXT_IVD_Validation_On11292011B.out
SCWEPPES XP3
================
to get rman:
archive log list
cd ^
rman target rmanadmin
(password is hpy personal password)
EUTRADEOMC
==========
If cannot connect to server, check Net/HW and use Primary IP / NAT.
VALEO: Basta may SMX / EPM sa server name, hindi sa atin. Matrix Server yun.
SIRIUS
================================
EUTRADEOMC\manalon
tlcm34ar
sqlplus /nolog
conn sys as sysdba
conn sys@<DB> as sysdba
Redo Log
============================================================
1. Check status:
OR
BACKUP CHECK
============================================
Select recid,
set_count,
backup_type,
Incremental_level Ilevel,
to_char(completion_time,'mm/dd/yy hh24:mi') Completed
From v$backup_set
Where backup_type='D';
ACTIVE SESSIONS
===================================================================================
============================
set lines 200
col SID for 999999
col SERIAL# for 999999
col USERNAME for a12
col STATUS for a8
col COMMAND for 999999
col MACHINE for a27
col PROCESS for 999999
col PROGRAM for a40
col "IDLE_TIME (min)" for 999,999.99
select SID, SERIAL#, USERNAME, STATUS, MACHINE, PROCESS, PROGRAM, LOGON_TIME,
LAST_CALL_ET/60 "IDLE_TIME (min)"
from v$session
where USERNAME is not null
and USERNAME !='SYS'
--and SID in ('46','14','9','16')
order by LOGON_TIME
/
STANDBY:
select sequence#, archived, applied from v$archived_log order by sequence#;
select sequence#, archived, applied from v$archived_log where applied='NO' order by
sequence#;
select count(*) from v$archived_log where applied='NO';
alter database recover managed standby database disconnect from session;
1. startup nomount
2. alter database mount standby database;
3. alter database recover managed standby database disconnect from session;
STOPPING A SERVICE / PROCESS IN WINDOWS (MSSQL)
1. net stop <service_name>
2. if #1 fails, sc queryex <service_name>, get PID
3. taskkill /f /pid <PID>
LONG-RUNNING PROCESS
===================================================================================
================================
set lines 200
col SID for 999999
col SERIAL# for 999999
col USERNAME for a12
col STATUS for a8
col COMMAND for 999999
col MACHINE for a27
col PROCESS for 999999
col PROGRAM for a40
col "IDLE_TIME (min)" for 999,999.99
select SID, SERIAL#, USERNAME, STATUS, MACHINE, PROCESS, PROGRAM, LOGON_TIME,
LAST_CALL_ET/60 "IDLE_TIME (min)"
from v$session
where USERNAME is not null
and USERNAME !='SYS'
--and SID in ('46','14','9','16')
order by LOGON_TIME
/
DISABLING JOBS
execute dbms_job.broken(<job number>,true);
execute dbms_job.broken(154,true);
Below is the proposed maximum value for server memory per instance as of the
creation of this change which is subject to adjustment on the actual
implementation.
To set a fixed amount of memory, there are 2 options. One is using the GUI and the
other is using the command line:
A. GUI
In Object Explorer, right-click a server and select Properties. Click the Memory
node.
Under Server Memory Options, enter the amount that you want for Minimum server
memory and Maximum server memory.
B. Command line
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'max server memory', 6144;
GO
RECONFIGURE;
GO
Instance Database
VCX0001P01 ReportServer
VCX0001P01 ReportServerTempDB
VCX0001P01/CDB ShopExpress
VCX0001P01/ECA_PROD ETL_LOG
VCX0001P01/ECA_PROD LA_BR
VCX0001P01/ECA_PROD LA_NBD
VCX0001P01/ECA_PROD PubEasy
VCX0001P01/ECA_PROD SA_ABG
VCX0001P01/ECA_PROD SA_BOKUS
VCX0001P01/ECA_PROD SA_BR
VCX0001P01/ECA_PROD SA_EXTLEV
VCX0001P01/ECA_PROD SA_NBD
VCX0001P01/ECA_PROD SA_TEMPEXTLEV
VCX0001P01/FEKO_PROD FEKO_PROD
VCX0001P01/FEKO_PROD FEKO_PRODTempDB
VCX0001P01/FEKO_PROD ReportServer
VCX0001P01/FEKO_PROD agrprod
VCX0001P01/FEKO_PROD agrtest
VCX0001P01/FEKO_PROD agrutb
VCX0001P01/FEKO_PROD webinfo
VCX0001P01/INR Infra
VCX0001P01/IVT Invit2006Arkiv
VCX0001P01/IVT Invit2006Server
VCX0001P01/MSP MSP
VCX0001P01/VAPA_PROD WEBVOPHQ
top - 12:29:24 up 3 days, 14:05, 4 users, load average: 4.80, 3.70, 3.72
Tasks: 735 total, 1 running, 734 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.6%us, 1.2%sy, 0.0%ni, 90.9%id, 5.8%wa, 0.2%hi, 1.3%si, 0.0%st
Mem: 132098152k total, 131770952k used, 327200k free, 296068k buffers
Swap: 16482296k total, 16482296k used, 0k free, 127391656k cached
AVIVA LINK:
https://www.avivaworld.com/sites/USappDevReleaseManagement/Lists/Aviva%20US%20LNA
%20App%20Dev%20Release%20and%20Deployment%20Tracki/SampleView.aspx?
Paged=TRUE&p_GroupCol1=Sheila%20Krieg&p_GroupCol2=A2K
%2dBAU&PageFirstRow=101&&View={4E3D2E74-FA57-4DFD-824D-
0DDCEA5079A3}&InitialTabId=Ribbon%2EListItem&VisibilityContext=WSSTabPersistence
SOLARIS (TOP)
============================
Memory size: 24576 Megabytes
The database principal owns a schema in the database, and cannot be dropped.
(Microsoft SQL Server, Error: 15138)
===================================================================================
===========================
Now if you drop the database owner it will not throw any error.
SELECT s.name
FROM sys.schemas s
WHERE s.principal_id = USER_ID('YourUserID');
GRANT ORACLE
=========================================================
col owner for a15
col OBJECT_NAME for a20
col OBJECT_TYPE for a20
select OWNER, OBJECT_NAME, OBJECT_TYPE from dba_objects
where OBJECT_NAME
in
('USERPREF',
'SALES_HISTORY',
'ACCRUAL_DATA',
'SALES_HEADER',
'SALES_BANNER',
'USER_MASTER',
'SALES_DEAL',
'USER_ACCOUNT_MAP',
'ORGANISATION',
'PRODUCT_GRIN',
'PRODUCT_SKU',
'PRODUCT',
'PACK_MASTER',
'BRAND_MASTER',
'CUSTOMER_MASTER',
'BUYING_WEEKS',
'FIXED_TERMS',
'GRIN_MAPPING',
'WAR_BA')
/
UPDATE README
==============
echo "09) Backup before applying its-issr-db.02.08.01_03042013 patches:
20130305153200" >> Readme
PAS PROD/PREPROD
================
ALLOCATE CHANNEL FOR MAINTENANCE TYPE DISK;
DELETE NOPROMPT ARCHIVELOG UNTIL TIME 'SYSDATE - 1' BACKED UP 1 TIMES TO DEVICE
TYPE DISK;
DELETE NOPROMPT BACKUPSET COMPLETED BEFORE "SYSDATE-1" DEVICE TYPE DISK;
RELEASE CHANNEL;
PERFSTAT
========
1. Log-in as perfstat user and purge old snap ID.
SQL> connect perfstat/perfstat
Connected.
SQL> @?\rdbms\admin\sppurge.sql
*NOTE: SPPURGE is located in D:\oracle\ora9i\rdbms\admin
For Oracle:
Select recid,
set_count,
backup_type,
Incremental_level Ilevel,
to_char(completion_time,'mm/dd/yy hh24:mi') Completed
From v$backup_set
Where backup_type='D';
sqlplus system/manager@ITEFRTST
DATABASE SIZE
NAME TEXT
-------------------------
-----------------------------------------------------------------------------------
-----------------
MAINTENANCE_SCRIPT PROCEDURE "MAINTENANCE_SCRIPT" AS
MAINTENANCE_SCRIPT
MAINTENANCE_SCRIPT v_dynam varchar2(200);
MAINTENANCE_SCRIPT cursor idx_cursor is
MAINTENANCE_SCRIPT select owner, index_name, tablespace_name from
dba_indexes where owner = 'MXEPLM';
MAINTENANCE_SCRIPT
MAINTENANCE_SCRIPT
MAINTENANCE_SCRIPT BEGIN
MAINTENANCE_SCRIPT for c_row in idx_cursor loop
MAINTENANCE_SCRIPT v_dynam := 'alter index '||c_row.owner||'.'||
c_row.index_name||' rebuild tablespace '||c_row.tabl
espace_name||' compute statistics nologging parallel 5';
MAINTENANCE_SCRIPT
MAINTENANCE_SCRIPT execute immediate v_dynam;
MAINTENANCE_SCRIPT end loop;
MAINTENANCE_SCRIPT
MAINTENANCE_SCRIPT END Maintenance_script;
15 rows selected.
or exec get ddl
For Oracle:
Select recid,
set_count,
backup_type,
Incremental_level Ilevel,
to_char(completion_time,'mm/dd/yy hh24:mi') Completed
From v$backup_set
Where backup_type='L';
Carlo Domogma:
For MSSQL Server:
SELECT database_name, backup_start_date, type
FROM msdb.dbo.backupset
WHERE backup_start_date BETWEEN DATEADD(hh, -24, GETDATE()) AND GETDATE()
AND Type = 'L'
ORDER BY backup_set_id DESC
GO
For Oracle:
Select recid,
set_count,
backup_type,
Incremental_level Ilevel,
to_char(completion_time,'mm/dd/yy hh24:mi') Completed
From v$backup_set
Where backup_type='L';
MSSQL
TOTAL DB COUNT
SELECT count(1)-4 FROM sys.databases
TOTAL DB SIZE in GB
SELECT CONVERT(DECIMAL(10,2),(SUM(size * 8.00) / 1024.00 /1024)) As UsedSpace
FROM master.sys.master_files
CPU
select COUNT(*) from sys.dm_os_schedulers where status = 'VISIBLE ONLINE'
select cpu_count from sys.dm_os_sys_info
PHYSICAL
SELECT cpu_count / hyperthread_ratio AS physical_cpu_sockets
FROM sys.dm_os_sys_info ;
MEMORY
SELECT object_name, counter_name, cntr_value/1024 AS 'Total Server Memory (MB)'
FROM sys.dm_os_performance_counters
WHERE counter_name = 'Total Server Memory (KB)'
SELECT
(SUM(backup_size) + SUM(1536)) / 1024 / 1024 As MBs
FROM
backupset
INNER JOIN
(
SELECT
database_name,
MAX(backup_start_date) as LastFullBackupDate
FROM
dbo.backupset
WHERE
type = 'D'
GROUP BY
database_name
) AS GetLastDate
ON
backupset.database_name = GetLastDate.database_name AND
backupset.backup_start_date = GetLastDate.LastFullBackupDate
TRANSFERRING FILES
cp -p <file> /tmp
scp manalonk-ua@vpir1ldv:/path of file ./
DB EXPORT
=========
For Schema Export:
set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
set ORACLE_SID=MXVT
exp system@MXVT file=D:\dump\exp_MXVT_20131106.dmp
log=D:\dump\exp_MXVT_20131106.log owner=MX_VT consistent=y
cat oratab
MYSQL
1.- How do I get mysql prompt in linux terminal?
mysql -u root -p
To connect to vcx0001l09: mysql -u root -pbrorDuktig
At the Enter password: prompt, well, enter root's password :)
You can find further reference by typing mysql --help or at the online manual.
TO HEALTHCHECK:
mysqladmin -u root -pbrorDuktig processlist status version