Wednesday, February 8, 2012 14:20

‘Oracle’ News

Subscribe to RSS feed

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:

ORA-01758 when trying to alter table

Sunday, February 8, 2009 13:29

If you are trying to add a new Not NULL columns to a table and you get the following error: ORA-01758: table must be empty to add mandatory (NOT NULL) column Since the values in the new column are null (after all, you just added the column) the new constraint can ...

Tagged with:

Oracle NVL Function

Wednesday, January 14, 2009 8:48

Oracle/PLSQL: NVL Function In Oracle/PLSQL, the NVL function lets you substitute a value when a null value is encountered. The syntax for the NVL function is: NVL( string1, replace_with ) string1 is the string to test for a null value. replace_with is the value returned if string1 is null. Applies To: Oracle 8i, Oracle ...

Tagged with: ,

Oracle Study Note

Monday, January 5, 2009 13:33

Oracle =========================================================== Books: Database Concepts ----------------------------------------------------------- Database Structure and Space Management ----------------------------------------------------------- Logical Database Structure * Schema/Schema object(the logical structures that directly refer to the DB's data a schema is owned by a user who has the same name as the schema) Table View Index Cluster * Data block * Extent * Segment * Tablespace Online(accessible)and Offine(not accessible) * Databse, TableSpaces, and Datafiles Physical Database Structures * Datafiles (the charateristics of ...

Tagged with: ,

ORA-00054: resource busy and acquire with NOWAIT specified

Monday, December 29, 2008 15:58

If you administer a busy database you will see this error from time to time. It is nothing to worry about, but it can be quite annoying when it stops you from doing something. It simply means that session has a lock on an object that your session is trying to ...

Tagged with:

Useful commands of Oracle

Monday, December 29, 2008 14:12

第一章:日志管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> alter system checkpoint; 3.adding online redo log groups sql> alter database add logfile [group 4] sql> (`/disk3/log4a.rdo`,`/disk4/log4b.rdo`) size 1m; 4.adding online redo log members sql> alter database add logfile member sql> `/disk3/log1b.rdo` to group 1, sql> `/disk4/log2b.rdo` to group 2; 5.changes the name of the online redo logfile sql> alter database ...

Tagged with:

Learn the fundamentals of Oracle

Monday, December 29, 2008 14:08

SQL*Plus — schemata — data types — DML & DDL examples — editing commands — using external files — the dual pseudo-table — introduction to transactions — optional exercise — references Introduction During this tutorial you will build on your databases knowledge by learning the fundamentals of Oracle, one of ...

Tagged with:

Oracle Package

Monday, December 29, 2008 13:35

A package is a group of procedures, functions, variables and SQL statements created as a single unit. It is used to store together related objects. A package has two parts, Package Specification or spec or package header and Package Body. Package Specification acts as an interface to the package. Declaration of ...

Tagged with:

PLSQL

Tuesday, December 23, 2008 13:10

Begin for i in 1..10 loop insert into TABLE_NAME () values () ; end loop; end; commit;

Tagged with:

Oracle Function Trim

Tuesday, December 16, 2008 23:18

In Oracle/PLSQL, the trim function removes all specified characters either from the beginning or the ending of a string. The syntax for the trim function is: trim( [ leading | trailing | both [ trim_character ] ] string1 ) leading - remove trim_string from the front of string1. trailing ...

Tagged with: