For SQLServer using arthemetic and DATEADD one can modify date select getdate() -- today , getdate() + 1 -- tomorrow… READ MORE
Scenario 1) Default transaction using AUTONOMOUS TRANSACTION and checking records in table called APP_LOG at each step. The store procedure… READ MORE
Example of how AUTONOMOUS_TRANSACTION, it allows one to isolate a DML statements, the DML statements with the AUTONOMOUS transaction are… READ MORE
Examples of using “SAVEPOINT” and “ROLLBACK TO” SQL> select * from scott.test; no rows selected SQL> insert into scott.test values… READ MORE
When using VALIDATE option, Oracle will validate backup and not create backups and will not restore when this option is… READ MORE
To move/rename current block change tracking file, one would need to restart the database. # Get current block change tracking… READ MORE
|
When running Microsoft Management Console if you get the error where it fails to initialize, one possible fix could be… READ MORE
To get the location of SQLServer Agent log file, the log file is called SQLAGENT.out DECLARE @oem_errorlog nvarchar(255) EXECUTE master.dbo.xp_instance_regread… READ MORE
Backup in RMAN can be compressed when they are being created. Using the following command one can compress backup to… READ MORE
Starting RMAN with check syntax will check syntax of RMAN command, it will report errors if the syntax is incorrect.… READ MORE
When clicking on Properties, SQLServer could display the following error message “Property Owner is not available for Database ‘[DatabaseName]’. This… READ MORE
|
Move by one character h – Move cursor left j – Move cursor down k – Move cursor up l… READ MORE
http://support.microsoft.com/kb/923247 Using DBCC CHECKDB (0) WITH ESTIMATEONLY will estimate space needed in tempdb when DBCC CHECKDB is run. Sample Output:… READ MORE
|
Article to manage SQL Server 2000 transaction log growth http://www.mssqltips.com/tip.asp?tip=950 READ MORE
— Get process id of current process $ echo $$ 6113 — shows process id $ ps PID TTY TIME… READ MORE
|
sp_tableoption is used to turn on/off features on tables like turn on the text in row feature for datatype text,… READ MORE
|
Using oradebug one can analyze if an instance is hung $ sqlplus “/as sysdba” SQL> oradebug mysetpid Statement processed. —… READ MORE
If using SQLDeveloper from Oracle there was an issue we ran into where the user who were granted read access… READ MORE
When one offline a datafile before you online the datafile one has to recover the datafile 1) Offline a datafile… READ MORE
We had seen case when the DDL timestamp of a procedure was changed in the middle of the night and… READ MORE
Scenario when the controlfile is lost and there was a datafile added to an existing table space after backup of… READ MORE
Scenario when all control files for some reason have been lost. The following scenario shows how to restore controlfile and… READ MORE
Restore spfile through RMAN, here are some scenerios/examples. There are some pre-requites, the database would need to be in nomount… READ MORE
When AUTOBACKUP is turned on Oracle will create backup of controlfile and spfile. When one runs backup of the database… READ MORE
“Control what I can control”
~ Alex Lima