Category Archives: Uncategorized

Chnage the Path for the mdf and ldf file while Creating a SQL Database

To change the default path for mdf and ldf files in SQL ServerUSE [master] GO EXEC xp_instance_regwrite N’HKEY_LOCAL_MACHINE’, N’Software\Microsoft\MSSQLServer\MSSQLServer’, N’DefaultData’, REG_SZ, N’F:\Data\DB05′ GO EXEC xp_instance_regwrite N’HKEY_LOCAL_MACHINE’, N’Software\Microsoft\MSSQLServer\MSSQLServer’, N’DefaultLog’, REG_SZ, N’F:\Data\DB05′ GO Advertisements

Posted in SQL Server, Uncategorized | Leave a comment

LINUX USEFULL COMMANDS

To Check the RPM is Installed or not rpm -qa –queryformat “%{NAME} -%{VERSION}-%{RELEASE} (%{ARCH})\n” | grep libXp Mount the ISO in Linux machine to install RPM Mounting ISO mount -o loop /media/DISK_IMG/OracleLinux-R5-U7-Server-i386-dvd.iso /u02

Posted in Uncategorized | Leave a comment

Public key for .rpm is not installed

I was trying to Install RPM in Oracle Linux 5.7. It was giving me error public key for .rpm is not installed. Resolved the issue with rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-oraclerpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

Posted in Uncategorized | Leave a comment

Backup Database Users

To export selected users daily, you can do it very easily backup.bat  expdp system/password parfile=dailybackup.ora   dailybackup.ora DIRECTORY=dailybackup reuse_dumpfiles=y LOGFILE=Daily.log DUMPFILE=Daily%u.dmp Schemas = scott,hr,system FILESIZE=5gb  

Posted in Uncategorized | Leave a comment

How to synchronize windows folder

In have two fodders i.e. source and target. In this demo it is explained that all files from source folder should be copied or update the target folder. As show in the picture I have created some files in source … Continue reading

Posted in Uncategorized | Leave a comment

How to change the file extension using cmd script

To change the files extension in once using script its very easy. I need to change the multiple files extension , it was difficult to change one by one. So I created a script to change at once and reuse … Continue reading

Image | Posted on by | Leave a comment

Upload data using sql loader

Make a batch file suppose load_data.bat –content of the file is –you keep the batch and controlfile in the same folder where the datafiles are there. –This script will upload all data files within the same folder whatever fortmat they … Continue reading

Posted in Uncategorized | Leave a comment