Tuesday, February 7, 2012 8:42

‘Database’ News

Subscribe to RSS feed
Time zone and timestamp in Oracle

Time zone and timestamp in Oracle

Friday, June 12, 2009 19:12

There are two kinds of timezone: 1. DBTIMEZONE you can set the time zone for database by "alter database set time_zone='+08:00'". To make this take effect, you should reboot the database. But if you have a column that is of TIMESTAMP WITH ...

Tagged with:

Oracle In and Exist

Monday, April 6, 2009 10:08

Oracle In vs Exist the two are processed very very differently. Select * from T1 where x in ( select y from T2 ) is typically processed as: select * from t1, ( select distinct y from t2 ) t2 where t1.x = t2.y; The subquery is evaluated, distinct'ed, indexed (or hashed or sorted) and then joined ...

Tagged with:

Oracle CURSOR FOR Loop

Monday, April 6, 2009 8:41

Syntax: FOR record_index in cursor_name LOOP {.statements.} END LOOP; You would use a CURSOR FOR Loop when you want to fetch and process every record in a cursor. The CURSOR FOR Loop will terminate when all of the records in the cursor have been fetched. Here is an example of a function that uses a CURSOR ...

Tagged with:

DROP MATERIALIZED VIEW

Friday, March 27, 2009 8:32

When you drop a materialized view, Oracle Database does not place it in the recycle bin. Therefore, you cannot subsequently either purge or undrop the materialized view. The keyword SNAPSHOT is supported in place of MATERIALIZED VIEW for backward compatibility. Prerequisites The materialized view must be in your own ...

Tagged with: ,

MySQL 5.0 or MySQL 5.1?

Monday, March 2, 2009 10:09

I have not yet seen enough of 5.1 in real-world production environments. MySQL 5.1 rease as “GA” seems to be the most controversial to date. It ...

Tagged with: ,
TIPs for SQL Server 2005

TIPs for SQL Server 2005

Friday, February 27, 2009 16:53

connect database using port: Assign tcp port:

Tagged with:

Moving tablespace to a new location

Friday, February 20, 2009 9:55

1)    Take the tablespace offline ALTER TABLESPACE tablespace-name OFFLINE; 2)    Use the OS to Move the tablespace to the new location 3)    Run the following command: ALTER TABLESPACE tablespace-name RENAME DATAFILE ‘OS path to old tablespace\tablespace-datafile- name.dbf’ TO ‘OS path to new location\tablespace-datafile-name.dbf’; 4)    Take the tablespace back online ALTER TABLESPACE tablespace-name ONLINE; If the following error ...

Tagged with:

Upgrade Oracle 10.2.0.1 to 10.2.0.3

Sunday, February 8, 2009 14:13

I. Download patch set p5337014_10203_WINNT.zip II. To install the Oracle Database 10g patch set interactively: Log on as a member of the Administrators group to the computer on which you are going to install Oracle components. If you are installing on a Primary Domain Controller or a Backup Domain Controller, log on ...

Tagged with:

Sqlnet.ora

Sunday, February 8, 2009 13:40

Sqlnet.ora is a text file that provides SQL*Net with basic configuration details like tracing options, default domain, encryption, etc. This file can be found in the ORACLE HOME\NETWORK\ADMIN directory. It can be used to enable/disable trace. Reference: http://www.orafaq.com/wiki/Sqlnet.ora#Sample_sqlnet.ora_files http://users.handysoft.co.kr/~jelong/net_para.txt http://www.dba-oracle.com/t_tns_12560_protocol_adapter_error.htm

Tagged with:

TNS-12560: TNS:protocol adapter error

Sunday, February 8, 2009 13:36

The error "TNS-12560: TNS: protocol adapter error" is usually related to a configuration issue with the listener: TNS-12560 TNS:protocol adapter error Cause: A generic protocol adapter error occurred. Action: Check addresses used for proper protocol specification. Before reporting this error, look ...

Tagged with: