Oracle log files include warning logs, trace logs, and audit logs,Redo logs: Archive logs.Warning log: the alert log, which corresponds to the background_dump_dest set in the system initialization parameter file.View the location of the log
Index optimization rules:
1. Do not start with a WILDCARD (WILDCARD) in the like file. Otherwise, the index will not be used.
Example: SELECT LODGING FROM LODGING
Where manager like '% HANMAN ';
2. Avoid using calculation on the index column or
Oracle 11g R1 is installed on 32-bit XP. When the Database Configuration Assistant is last executed, an error "ORA-28547: failed to connect to the server, possibly Oracle Net management error" is reported. Google's method was fruitless, and the
Multiple ORA-01650 errors are reported when the Oracle temporary table cursor is not released, resulting in insufficient rollback segment space, causing the database to fail. This article mainly introduces the solution to this problem. Next let's
The following error is reported when you start the database:SQL> startupORA-01078: failure in processing system parametersLRM-00109: cocould not open parameter file '/orac/orahome/app/oracle/product/10.2.0/db_1/dbs/initjason. ora'Solution:Cp $
Run the exp and imp commands to back up 11 GB of data. When importing 10 Gb of data, an error is thrown: the exported file is not valid, and the header verification fails. The import is not terminated successfully. Today, I encountered this
Numeric FunctionsSQL code-- Both input and output are numbers.-- Abs (x) obtains the absolute value.Select abs (-1) from dual; -- 1 -- Ceil (x) returns the smallest integer greater than or equal to n.Select ceil (1.4), ceil (-2.5) from dual; -- 2,-2
Generally, for a database with a single function, you can set an optimizer mode at the instance level,For example, for OLAP systems, most of the time the database runs a report job, the execution is basically an aggregate SQL operation,For example,
Syntax Comparison Between in and exist:Select × from data table t where t. x in (...)T. x field type value set, such as ('1', '2', '3'), but if t. when x is of the number type, it seems that such a write method will have a problem. It can also be a
1. start the listener to view the status lsnrctl start to view the listener status lsnrctl status2. start and close the oracle master service. net start oracleserviceweb net stop oracleserviceweb3. Connect to oracle sqlplus sys/123456 (password) as
C: \ Documents ents and Settings \ Administrator> sqlplus/nologSQL> connect system/password as sysdbaConnected.SQL> shutdown normalORA-01109: the database is not open The database has been detached.The ORACLE routine has been disabled.SQL> startup
Oracle Function Format:Create or replace function user-defined function name [(parameter)]Return Value TypeIsReturn Value TypeBeginOperationEnd;
Test:Input empno to obtain the user name,CREATE OR REPLACEFUNCTION FUN_SEL (aa emp. EMPNO % TYPE)
SQL statement in Oracle time format
-- 12-hour system current time (AM) SQL> select to_char (sysdate, 'yyyy-MM-DD HH12: MI: SS am') from dual; -- 24-hour system current time (PM) SQL> select to_char (sysdate, 'yyyy-MM-DD HH24: MI: SS pm') from dual;
[Oracle] Online Segment Shrink refers to the fragments in the Online Segment space. It has the following features: Online, that is, during the segment compression process, DML is almost unaffected (DML will be blocked only a short period before the
Oracle merge into usage explanation + instance role: merge into solves the problem of using Table B and new table A data. If table A does not exist, the data of Table B is inserted into Table A. Syntax:
MERGE INTO [your table-name] [rename your
Learning window functions over () in OracleYou can use window functions to solve some problems. For example, if we have two tables, one for the instructor and one for the department, and if we want to query the average salary of the teachers in each
To correctly configure the tnsname. ora file, you can use the Oracle Net Configuration Assistant or Oracle Net Manager graphical Configuration tool on the client machine to configure the client. The Configuration tool actually modifies the tnsnames.
Was: configure the data source of the oracle RAC cluster. Configure the data source of the Oracle RAC cluster in WebSphere. Assume that the Oracle RAC double-click is HOST1 and HOST2, and the port is 1521. The service name is orcldbservice, the URL
With regards to the PlSql login report Not logged on problem, we have been building a web environment over the past few days. Therefore, we also need to build a PlSql to access the Oracle database. This was rarely done in the past. The first time we
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.