You can connect another SQL Server database or different type database from SQL Server database with Linked Server feature. You can use below operations to create new linked server for SQL Server database to SQL Server database. Create Linked Server Steps Create a user on remote database to use connection and give permission on which…
Tag: Database Administration
Obtain Surname, Last Name and Mid Name From Full Name in Oracle
If you have a column with full name data and you want to split this data, you can use below function to split operation. Split Name ve Surname Table : test Data1 : Emin Fatih Acar Data2 : Fatih Acar SQL> select fullname, substr(fullname,0,instr(fullname,’ ‘,Instr(fullname,’ ‘,-1))-1) name, substr(fullname,Instr(fullname,’ ‘,-1)+1) surname from test; Result: Data1 name…
SQL Server 2012 AlwaysOn Availability Groups Insallation and Configuration
Always On Availability Group is a new feature in SQL Server Database with 2012 release. Before this feature, we was using database mirroring feature in SQL Server 2005. But, mirroring has some limitations and weaknesses. and mirroring feature will be disabled near future. AlwaysOn Availability Groups Features Multi or Single Database Failovers Multiple Secondaries Active…
Keep Table in Buffer Pool Oracle 11g
Oracle provides a feature to keep objects in the Buffer pool. This feature allows you to keep the frequently accessed table in memory itself which will provide the faster access of the table. The object will be kept under the KEEP pool and the purpose of the keep pool is to accommodate / cache the…
Create Dblink From Oracle to PostgreSQL Database
Since fetching data from PostgreSQL database to Oracle database, you can create database link between two database systems. For that you can apply below operations. Test Systems PostgreSQL DB IP : 192.168.10.10 OS : Centos 7 x64 Service : postgresql.service Oracle DB IP : 192.168.10.20 OS : OEL 6 x64 PostgreSQL Side psql# create user…
PostgreSQL Frequently Using Commands
List, Add, Drop Database List databases postgres=# \d Add database postgres=# createdb testdb or postgres=# create database testdb with owner facar; Drop database postgres=# dropdb testdb List, Add, Drop, Grant User and Schema List Users postgres=# select * from pg_user; Add User postgres=# create user facar with encrypted password ‘password’; or postgres=# createuser (interactive user create)…
Oracle 11g Error Codes and Solution Suggestions from ORA-22800 to ORA-23000
Oracle 11g Error Codes and Solution Suggestions from ORA-22800 to ORA-23000 ORA-22800: invalid user-defined type Cause: An attempt was made to use an incomplete type as a constructor. Action: Complete the type definition before using it in a query. ORA-22801: invalid object row variable Cause: The specified object row variable is not available in the scope of name…
Oracle 11g Error Codes and Solution Suggestions from ORA-22300 to ORA-22700
Oracle 11g Error Codes and Solution Suggestions from ORA-22300 to ORA-22700 ORA-22303: type “string”.”string” not found Cause: The user is trying to obtain information for a type that cannot be found. Action: Check that the schema is correct and that the type has been created correctly. ORA-22304: input type is not an object type Cause: The user is…
Oracle 11g Error Codes and Solution Suggestions from ORA-22000 to ORA-22300
Oracle 11g Error Codes and Solution Suggestions from ORA-22000 to ORA-22300 ORA-22053: overflow error Cause: This operation’s result is above the range of Oracle number. Action: Decrease the input value(s) so that the result is in the range of Oracle number. ORA-22054: underflow error Cause: This operation’s result is below the range of Oracle number. Action: Increase the input…
Oracle 11g Error Codes and Solution Suggestions from ORA-20000 to ORA-22000
Oracle 11g Error Codes and Solution Suggestions from ORA-20000 to ORA-22000 ORA-20000: string Cause: The stored procedure ‘raise_application_error’ was called which causes this error to be generated. Action: Correct the problem as described in the error message or contact the application administrator or DBA for more information. ORA-21300: objects option not installed Cause: The objects option is not installed…