Thursday, November 3, 2011

mount windows share in linux - owner other than root

When you mount a windows directory in a linux machine , its default owner is root.You can't change it directly.For some purpose you need to mount a windows directory with some other owner other than root. Then follow the below mentioned steps.

1. Change mount point owner from root to user oracle (Assume)
    # chown oracle:oinstall linuxdir

2. Change permission to  access command mount by the user other than root.
# chmod 6555 mount    
    -rwsr-sw-x mount         

   For details refer
   http://labor-liber.org/en/gnu-linux/introduction/special_permissions

3. To run sudo as user 'oracle'  edit sudo conf file

   # visudo
     oracle ALL=(ALL)ALL
   Add above mentioned line

For details refer
http://www.gratisoft.us/sudo/intro.html
http://www.go2linux.org/sudoers-how-to

4. Now Run from user oracle
  
 sudo mount -t cifs //systemname/share /mnt/linux  -o username=windowsusername,password=pass,uid=oracle,gid=oinstall

5. Now you can see the change in owner name to your mounted windows shared directory.


Change archive location


Login as sys user . Use EM to change the location.

Tuesday, October 11, 2011

Symantect Backup Exec - Oracle Remote Agent configuration for linux server


Remote agent installation document 

Oracle  Agent Configuration

#./opt/VRTSralus/bin/AgentConfig

Symantec Backup Exec Remote Agent Utility
Choose one of the following options:
1. Configure database access
2. Configure Oracle instance information
3. Quit
Please enter your selection: 1

Configuring machine information
Choose one of the following options:
1. Add system credentials for Oracle operations
2. Edit system credentials used for Oracle operations
3. Remove system credentials used for Oracle operations
4. View system credentials used for Oracle operations
5. Quit
Please enter your selection: 1
Enter a user name that has local system credentials: oracle
Enter the password:
Re-enter password:
Validating credentials.......
Do you want to use the full computer name/IP address for Oracle operations? (Y/N):y
Enter the full computer name or IP address: 192.168.252.35
Do you want to use a custom port to connect to the media server during Oracle operations? (Y/N): n
Commit Oracle operation settings to the configuration file? (Y/N): y
SUCCESS: Successfully added the entry to the configuration file.

Configuring machine information
Choose one of the following options:
1. Add system credentials for Oracle operations
2. Edit system credentials used for Oracle operations
3. Remove system credentials used for Oracle operations
4. View system credentials used for Oracle operations
5. Quit
Please enter your selection: 4
Entry 1
ObjectName: DBAID
Port: 5633
Entry 2
ObjectName: Machine
HostUsername: oracle
FQDN: 192.168.252.35
Port: 5633

Symantec Backup Exec Remote Agent Utility
Choose one of the following options:
1. Configure database access
2. Configure Oracle instance information
3. Quit
Please enter your selection: 2

If this computer is a RAC node, you must perform additional steps for configuration before you continue. Refer to the readme for these additional steps.


Configuring the Oracle Agent
Choose one of the following options:
1. Add a new Oracle instance to protect
2. Edit an existing Oracle instance
3. Delete an existing Oracle instance
4. View Oracle instance entries that have been added in the Remote Agent Utility
5. Quit
Please enter your selection: 1
Select an Oracle instance to configure
Entry 1. dbname
Enter the number 0 to go back
Enter your selection: 1
Enter the Oracle database SYSDBA user name: sys
Enter the Oracle database SYSDBA password:
Re-enter password:
Validating credentials.......
Enter the media server name or IP address: 192.168.251.1
Do you use a recovery catalog? (Y/N):n
Do you want to use a customized job template? (Y/N): n
Commit Oracle operation settings to the configuration file? (Y/N): y
SUCCESS: Successfully added the entry to the configuration file.

Configuring the Oracle Agent
Choose one of the following options:
1. Add a new Oracle instance to protect
2. Edit an existing Oracle instance
3. Delete an existing Oracle instance
4. View Oracle instance entries that have been added in the Remote Agent Utility
5. Quit
Please enter your selection: 4
Entry 1
ObjectName: dbname
DatabaseLogin: sys
MediaServerName: 192.168.251.1
JobTemplate: Default

Now check your configuration from your media server .

Friday, October 7, 2011

Backup router configuration using TFTP Server

Download SolarWinds-TFTP-Server from solarwinds website

Install and Run the server
Change file backup location as per your requirement.

Now run backup from your router






Thursday, October 6, 2011

DC Log on using Terminal Service

Enable above mentioned policy to work with DC using Remote Desktop.

Friday, September 30, 2011

Using more than one user name, are not allowed

Windows 2003

Multiple Connections to a server or shared resource by the same user, using more than one user name, are not allowed

> net use

> net use \\systemname\sharename /delete

You will get rid of this error.