Format the current time in Oracle and Mysql

Formatting the current time in Oracle and Mysql: public String queryOracleTime () {SQLQuery query = null; String resultSql = "select to_char (sysdate, 'yyyymmddhh24miss ') from dual "; query = (SQLQuery) getSession (). createSQLQuery (resultSql);

Modify and query the maximum number of oracle cursors

Modify and query oracle Max cursors 1. View ORACLE Max cursors C: \ Documents and Settings \ Administrator> sqlplus "sys/orcl @ orcl as sysdba" SQL * Plus: release 9.2.0.1.0-Production on Thursday November 5 09:08:04 2009 Copyright (c) 1982,200 2,

Common handling of NULL values in Oracle sorting

Common processing methods for NULL values in Oracle sorting 1. Oracle determines by default that null is the maximum value when processing Order by. Therefore, if it is ASC, it is placed at the end, DESC ranks first in descending order. 2. The nvl

Oracle executes a scheduled task on a daily basis.

Oracle executes a scheduled task every day to create a test table SQL> create table a (a date); www.2cto.com has been created. Create a custom process SQL> create or replace procedure test as 2 begin 3 insert into a values (sysdate); 4 end; 5/the

ORA-01810: format code appears twice (the to_date () function in Oralce is used

ORA-01810: format code appears twice (the to_date () function in Oralce is used to convert a string to a date object) The to_date () function in Oralce is used to convert a string to a date object, the specific format is to_date (string,

Oracle Federation uard Configuration

Oracle dataguard configuration Oracle dataguard Configuration System linux Description: master server ora10g01 (192.168.1.252) Standby server listen 10g02 (192.168.1.253) both machines are installed with the same version of the database master

NTILE of oracle analysis functions

The NTILE function of the oracle analysis function divides the ordered result set in a data partition, groups it into buckets, and assigns a unique group number to each group. This function is useful in statistical analysis. For example, if you want

PLSQL creates users and assigns Permissions

PLSQL creates users and assigns permissions 1. First, use the dba permission role to log on to PLSQL 2. Select File-New-User and enter the account and password to be created, select the tablespace www.2cto.com 3. You must assign the following

Oracle Data access path index Scanning

There are only two basic ways to access oracle Data: Full scan or index scan. The default index type is B-tree index. The index is created on one or more columns or column expressions in the table, and the column value and row number (ROWID) are

Oracle reported ora-01033: oracle initializationg or shutdown in prog

Oracle reported ora-01033: oracle initializationg or shutdown in SS error found problem customer Oracle Server entering PL/SQL Developer times ora-01033: oracle initializationg or shutdown in progress error prompt, application system cannot connect

ORACLE cannot delete the current connected user

When ORACLE fails to delete the current connected user and solves the problem of deleting the user in Oracle, the following message is displayed: ORACLE cannot delete the current connected user www.2cto.com. You can use the following statement to

Delete an oracle database in a linux operating system

Delete an oracle database in a linux operating system. turn off the oracle server and background processesps-ef | grep ora www.2cto.com turn off the database shutdown immediate2. turn off the listener lsnrctl status and execute lsnrctl stop if it is

Solve the Problem of useradd: warning: the home directory already...

Solve useradd: warning: the home directory already... when oracle11g is installed in RHEL 5 or CentOS5, www.2cto.com groupadd oinstall groupadd dba mkdir-p/u01/oracle (/u01/oracle will install Oracle 11g here) to create a user: useradd-g oinstall-G

Oracle reset sequence Statement 1

Oracle resets sequence Statement 1 SQL code www.2cto.com DECLARE n NUMBER (10); tsql VARCHAR2 (100); p_seqName varchar2 (20); BEGIN p_seqName: = 'seq _ RUN_ID '; execute immediate 'select' | p_seqName | '. nextval from dual 'into n; n: =-(n-1); tsql:

Import DMP to different tablespaces

Import DMP to a different tablespace. 1. Use imp to export data. cmd to enter the orcle installation directory bin. Enter the following command: www.2cto.com exp username/password @ ORACLEEPP file = c: \ hysjb. dmp owner = magazine_hy rows = y 2,

Test Case 1 of DBMS_FGA package in Oracle fine-grained audit (FGA)

Oracle fine-grained audit (FGA) DBMS_FGA package experiment case 1 starts from Oracle9i, DBMS_FGA can be used to audit select statements of a specified table, but can only audit select statements in 9i, DBMS_FGA can be used to demonstrate the audit

The last DML time on the row in the oracle query table

The last DML time on the row in the oracle query table introduces a pseudo column ORA_ROWSCN provided by oracle starting from 10 Gb, it can be divided into two modes: block-based, which is the default mode (block-level tracking), and row-based, in

Oracle connection error -- Connected to an idle instance solved

Oracle connection error-Connected to an idle instance solution symptom and solution: phenomenon: www.2cto.com PL/SQL Developer cannot connect to the database instance, prompting no listening SID. Use sysdba to log on and prompt Connected to an idle

Adjust the output width in sqlplus

Sqlplus uses sqlplus to query data by adjusting the output width. It is often difficult to query data in different branches, which requires adjusting the output width. The adjustment includes the length of the entire output row and the width of a

Start and Stop services at oracle11g, modify character sets, import and export, create and delete tablespaces, and uninstall oracle.

Start and Stop services at oracle11g, modify character sets, import and export, create and delete tablespaces, and uninstall oracle. [start and stop the service] // start and stop listening for www.2cto.com lsnrctl start; lsnrctl stop; // start and

Total Pages: 2147 1 .... 1198 1199 1200 1201 1202 .... 2147 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.