http://www.symantec.com/business/support/index?page=content&id=HOWTO58833
-
A kernel patch caused the machine to panic, leaving it in a confused state. I was able to boot from a CD and back out the patch, but it did not update the boot archive, even after issuing
/sbin/bootadm update-archive -R /ato fix:
Boot into the disk failsafe, then run:
/a/boot/solaris/bin/create_ramdisk -R /a
-
ksh -o vi
export TERM=vt100
/usr/openwin/bin/resize
or, If booted from CD or in failsafe:
/a/usr/openwin/bin/resize -
ETHTOOL_OPTS=”autoneg off speed 100 duplex full”
-
_allow_resetlogs_corruption=TRUE
This will at least allow you to open the database, then perform an export. It is NOT recommended that the database continue production operations as it will definitely crash in the near future.
-
The script will need to run thru a wrapper, or the OS will ignore the setuid bit altoghether. Compile the following C program and make it setuid, and it will work:
#include
#include int main(int argc, char *argv[]) { argv[0] = "some_script_path"; setreuid(geteuid(), -1); execv(argv[0], argv); exit(1); } -
connecting to sun blades
start /CH/blade/SP/cli
start SP/console -
‘xauth list’ will give the current tokens for the first login user
SOANDSO/unix:10 MIT-MAGIC-COOKIE-1 498e25150e75b1c319278813d853b1cayou can add some or alll of them to a second login user:
xauth add SOANDSO/unix:10 MIT-MAGIC-COOKIE-1 498e25150e75b1c319278813d853b1ca
-
#!/usr/bin/perl -w
# server.pl
#--------------------use strict;
use Socket;# use port 7890 as default
my $port = shift || 7890;
my $proto = getprotobyname('tcp');# create a socket, make it reusable
socket(SOCKET, PF_INET, SOCK_STREAM, $proto)
or die "Can't open socket $!\n";
setsockopt(SOCKET, SOL_SOCKET, SO_REUSEADDR, 1)
or die "Can't set socket option to SO_REUSEADDR $!\n";# bind to a port, then listen
bind( SOCKET, pack( 'Sn4x8', AF_INET, $port, "\0\0\0\0" ))
or die "Can't bind to port $port! \n";
listen(SOCKET, 5) or die "listen: $!";
print "SERVER started on port $port\n";# accepting a connection
my $client_addr;
while ($client_addr = accept(NET_SOCKET, SOCKET)) {
# send them a message, close connection
print NEW_SOCKET "Smile from the server";
close NEW_SOCKET;
} -
for i in `ndd -get /dev/${DEV} \? | awk '{print $1}'| grep ^[a-z]`; do echo -n "$i:"; ndd -get /dev/${DEV} $i; done
Category:
- Administration
- APPS
- Articles
- Backup & Recovery
- Certification
- Configuration
- DATABASE STRUCTURE
- DATAGUARD
- Documentation
- EBS
- Enterprise Manager
- FLASHBACK
- HACKING
- HEADS UP
- Installation
- JDeveloper
- Linux
- Monitoring
- MQ
- NFS
- NXclient/server
- Online Resources
- PERL
- python
- RMAN
- Routing & Switching
- SAN – NAS
- Scripts
- Serial-Parallel-Port-Testers
- SNMP
- Software
- Solaris
- Spiritual
- SQL & PL/SQL
- SQLPLUS
- Startup/Shutdown
- Streams
- Tuning
- Version Control
- Vertias
- VMWare
- VNC
- Windows XP
- ZFS





