Script for Tablespaces/ASM size/usage
Hi,
We have a 10gR2 RAC database with ASM
Part of the tablespaces are running with auto-extent.
I am looking for a script that gives us an integrated view of the database storage:
- tablepace size
- tablespace usage
- ASM size
- ASM usage
TIA.
Best Regards,
Rui Vilao.
You can try this one for asm. Combining asm and tablespace/data files usage may be complicated and performance intensive script. You may use grid control or dbconsole.
select group_number gn,name,type,state,total_mb,free_mb,usable_file_mb
from v$asm_diskgroup
Ashok
Similar Messages
-
Script for Document Setup size...
Hello All,
I have a request for a script, not sure how one would go about it but here we go.
An AI CS4 user selects a shape, they then execute a script that...
Resizes the Document Setup Art Board to one inch larger (length width) than the selected shape.
Then a rectangle is drawn in the document and is sized the same as the art board.
Any help would be great!!!
Thanks in advanced.
AntonAll,
I am tweaking this script again and have run into a road block that you may have a simple answer for. When I execute this script when selecting a single object it works perfect, if I execute it while selecting a group of objects the script will not apply the spot color to the selection. The script will however do everything but apply the spot color. Here is the latest edit. Thanks for any input.
Anton
#target illustrator
function main() {
if (app.documents.length == 0) {
alert('Open a document before running this script');
return; // Stop script here no doc open…
} else {
var docRef = app.activeDocument;
with (docRef) {
if (selection.length == 0) {
alert('No items are selected…');
return; // Stop script here with no selection…
if (selection.length > 1) {
alert('Too many items are selected…');
return; // Stop script here with selection Array…
} else {
var ccSpotColor = cmykColor(0, 100, 0, 0);
var ccCol = spots.add()
ccCol.name = 'CC';
ccCol.color = ccSpotColor;
ccCol.tint = 100;
ccCol.colorType = ColorModel.SPOT;
var cc = new SpotColor();
cc.spot = ccCol;
var selVB = selection[0].visibleBounds;
var rectTop = selVB[1] + 36;
var rectLeft = selVB[0] - 36;
var rectWidth = (selVB[2] - selVB[0]) + 72;
var rectHeight = (selVB[1] - selVB[3]) + 72;
selection[0].parent.name = 'ARTWORK';
selection[0].filled = false;
selection[0].stroked = true;
selection[0].strokeColor = cc;
selection[0].strokeWidth = 1;
var regLayer = layers.add(); // Creates Regmark Layer
regLayer.name = 'Regmark';
var tcLayer = layers.add(); // Creates TC Layer
tcLayer.name = 'Through Cut';
var ccLayer = layers.add(); // Creates CC Layer
ccLayer.name = 'CC';
var Cutline = selection[0]
Cutline.move(ccLayer, ElementPlacement.INSIDE);
var ThroughCutBox = tcLayer.pathItems.rectangle(rectTop, rectLeft, rectWidth, rectHeight, false); //This is TC box
ThroughCutBox.stroked = false;
ThroughCutBox.filled = true;
var tcSpotColor = cmykColor(0, 100, 90, 0);
var tcCol = spots.add()
tcCol.name = 'TC';
tcCol.color = tcSpotColor;
tcCol.tint = 100;
tcCol.colorType = ColorModel.SPOT;
var tc = new SpotColor();
tc.spot = tcCol;
ThroughCutBox.fillColor = tc;
tcLayer.visible = false;// Make TC Layer Invisable Here
artboards[0].artboardRect = (ThroughCutBox.visibleBounds);
redraw();
rectWidth = (rectWidth-72)/72;
rectWidth = roundToDP(rectWidth,1);
rectHeight = (rectHeight-72)/72;
rectHeight = roundToDP(rectHeight,1);
var textString = rectWidth + ' x ' + rectHeight;
prompt('Copy Me', textString);
main();
function roundToDP(nbr, dP) {
dpNbr = Math.round(nbr*Math.pow(10,dP))/Math.pow(10,dP);
return dpNbr;
function cmykColor(c, m, y, k) {
var newCMYK = new CMYKColor();
newCMYK.cyan = c;
newCMYK.magenta = m;
newCMYK.yellow = y;
newCMYK.black = k;
return newCMYK; -
Powershell script for average message size and message sent
Regarding this script from a Technet blog:
#mjolinor
#02/24/2011
#requires -version 2.0
$today = get-date
$rundate = $($today.adddays(-1)).toshortdatestring()
$outfile_date = ([datetime]$rundate).tostring("yyyy_MM_dd")
$outfile = "email_stats_" + $outfile_date + ".csv"
$dl_stat_file = "DL_stats.csv"
$accepted_domains = Get-AcceptedDomain |% {$_.domainname.domain}
[regex]$dom_rgx = "`(?i)(?:" + (($accepted_domains |% {"@" + [regex]::escape($_)}) -join "|") + ")$"
$mbx_servers = Get-ExchangeServer |? {$_.serverrole -match "Mailbox"}|% {$_.fqdn}
[regex]$mbx_rgx = "`(?i)(?:" + (($mbx_servers |% {"@" + [regex]::escape($_)}) -join "|") + ")\>$"
$msgid_rgx = "^\<.+@.+\..+\>$"
$hts = get-exchangeserver |? {$_.serverrole -match "hubtransport"} |% {$_.name}
$exch_addrs = @{}
$msgrec = @{}
$bytesrec = @{}
$msgrec_exch = @{}
$bytesrec_exch = @{}
$msgrec_smtpext = @{}
$bytesrec_smtpext = @{}
$total_msgsent = @{}
$total_bytessent = @{}
$unique_msgsent = @{}
$unique_bytessent = @{}
$total_msgsent_exch = @{}
$total_bytessent_exch = @{}
$unique_msgsent_exch = @{}
$unique_bytessent_exch = @{}
$total_msgsent_smtpext = @{}
$total_bytessent_smtpext = @{}
$unique_msgsent_smtpext=@{}
$unique_bytessent_smtpext = @{}
$dl = @{}
$obj_table = {
Date = $rundate
User = $($address.split("@")[0])
Domain = $($address.split("@")[1])
Sent Total = $(0 + $total_msgsent[$address])
Sent MB Total = $("{0:F2}" -f $($total_bytessent[$address]/1mb))
Received Total = $(0 + $msgrec[$address])
Received MB Total = $("{0:F2}" -f $($bytesrec[$address]/1mb))
Sent Internal = $(0 + $total_msgsent_exch[$address])
Sent Internal MB = $("{0:F2}" -f $($total_bytessent_exch[$address]/1mb))
Sent External = $(0 + $total_msgsent_smtpext[$address])
Sent External MB = $("{0:F2}" -f $($total_bytessent_smtpext[$address]/1mb))
Received Internal = $(0 + $msgrec_exch[$address])
Received Internal MB = $("{0:F2}" -f $($bytesrec_exch[$address]/1mb))
Received External = $(0 + $msgrec_smtpext[$address])
Received External MB = $("{0:F2}" -f $($bytesrec_smtpext[$address]/1mb))
Sent Unique Total = $(0 + $unique_msgsent[$address])
Sent Unique MB Total = $("{0:F2}" -f $($unique_bytessent[$address]/1mb))
Sent Internal Unique = $(0 + $unique_msgsent_exch[$address])
Sent Internal Unique MB = $("{0:F2}" -f $($unique_bytessent_exch[$address]/1mb))
Sent External Unique = $(0 + $unique_msgsent_smtpext[$address])
Sent External Unique MB = $("{0:F2}" -f $($unique_bytessent_smtpext[$address]/1mb))
$props = $obj_table.ToString().Split("`n")|% {if ($_ -match "(.+)="){$matches[1].trim()}}
$stat_recs = @()
function time_pipeline {
param ($increment = 1000)
begin{$i=0;$timer = [diagnostics.stopwatch]::startnew()}
process {
$i++
if (!($i % $increment)){Write-host “`rProcessed $i in $($timer.elapsed.totalseconds) seconds” -nonewline}
$_
end {
write-host “`rProcessed $i log records in $($timer.elapsed.totalseconds) seconds”
Write-Host " Average rate: $([int]($i/$timer.elapsed.totalseconds)) log recs/sec."
foreach ($ht in $hts){
Write-Host "`nStarted processing $ht"
get-messagetrackinglog -Server $ht -Start "$rundate" -End "$rundate 11:59:59 PM" -resultsize unlimited |
time_pipeline |%{
if ($_.eventid -eq "DELIVER" -and $_.source -eq "STOREDRIVER"){
if ($_.messageid -match $mbx_rgx -and $_.sender -match $dom_rgx) {
$total_msgsent[$_.sender] += $_.recipientcount
$total_bytessent[$_.sender] += ($_.recipientcount * $_.totalbytes)
$total_msgsent_exch[$_.sender] += $_.recipientcount
$total_bytessent_exch[$_.sender] += ($_.totalbytes * $_.recipientcount)
foreach ($rcpt in $_.recipients){
$exch_addrs[$rcpt] ++
$msgrec[$rcpt] ++
$bytesrec[$rcpt] += $_.totalbytes
$msgrec_exch[$rcpt] ++
$bytesrec_exch[$rcpt] += $_.totalbytes
else {
if ($_messageid -match $messageid_rgx){
foreach ($rcpt in $_.recipients){
$msgrec[$rcpt] ++
$bytesrec[$rcpt] += $_.totalbytes
$msgrec_smtpext[$rcpt] ++
$bytesrec_smtpext[$rcpt] += $_.totalbytes
if ($_.eventid -eq "RECEIVE" -and $_.source -eq "STOREDRIVER"){
$exch_addrs[$_.sender] ++
$unique_msgsent[$_.sender] ++
$unique_bytessent[$_.sender] += $_.totalbytes
if ($_.recipients -match $dom_rgx){
$unique_msgsent_exch[$_.sender] ++
$unique_bytessent_exch[$_.sender] += $_.totalbytes
if ($_.recipients -notmatch $dom_rgx){
$ext_count = ($_.recipients -notmatch $dom_rgx).count
$unique_msgsent_smtpext[$_.sender] ++
$unique_bytessent_smtpext[$_.sender] += $_.totalbytes
$total_msgsent[$_.sender] += $ext_count
$total_bytessent[$_.sender] += ($ext_count * $_.totalbytes)
$total_msgsent_smtpext[$_.sender] += $ext_count
$total_bytessent_smtpext[$_.sender] += ($ext_count * $_.totalbytes)
if ($_.eventid -eq "expand"){
$dl[$_.relatedrecipientaddress] ++
foreach ($address in $exch_addrs.keys){
$stat_rec = (new-object psobject -property (ConvertFrom-StringData (&$obj_table)))
$stat_recs += $stat_rec | select $props
$stat_recs | export-csv $outfile -notype
if (Test-Path $dl_stat_file){
$DL_stats = Import-Csv $dl_stat_file
$dl_list = $dl_stats |% {$_.address}
else {
$dl_list = @()
$DL_stats = @()
$DL_stats |% {
if ($dl[$_.address]){
if ([datetime]$_.lastused -le [datetime]$rundate){
$_.used = [int]$_.used + [int]$dl[$_.address]
$_.lastused = $rundate
$dl.keys |% {
if ($dl_list -notcontains $_){
$new_rec = "" | select Address,Used,Since,LastUsed
$new_rec.address = $_
$new_rec.used = $dl[$_]
$new_rec.Since = $rundate
$new_rec.lastused = $rundate
$dl_stats += @($new_rec)
$dl_stats | Export-Csv $dl_stat_file -NoTypeInformation -force
Write-Host "`nRun time was $(((get-date) - $today).totalseconds) seconds."
Write-Host "Email stats file is $outfile"
Write-Host "DL usage stats file is $dl_stat_file"
#Contact information
#[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
I would to target just one specific HT server in the environment, instead of all of them.
How do I do this?I believe the line I need to target is this line:
$hts = get-exchangeserver |? {$_.serverrole -match "hubtransport"} |% {$_.name
But I'm not entirely sure how to target just one specific HT server? -
Scripts on tablespaces and good documents for tablespaces
i required real time scripts for tablespaces and also knowledge sharing documents on tablespaces please provide them
thanksHello,
i required real time scripts for tablespaces and also knowledge sharing documents on tablespaces please provide them It depends on the Oracle Release:
http://www.oracle.com/pls/db102/print_hit_summary?search_string=TABLESPACE
Every Oracle Release has its news features. For instance LMT (Locally Managed Tablespace) was introduced in *8i*, ASSM (Automatic Segment Space Management) in *9i*, BIGFILE Tablespace in *10g*, ENCRYPTED and COMPRESSED Tablespace were respectively introduced in *11.1* and *11.2*,... and so on.
The UNDO Tablespace appeared with Oracle *9.2* and the SYSAUX Tablespace with Oracle *10.1*.
About the Scripts, the previous post give you many useful Notes from MOS.
Else, you can also extract Report about Database Storage from Oracle SQL Developer which is a free tool:
http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
Hope this help.
Best regards,
Jean-Valentin -
Script for temporary tablespace in 8.1.7.4.0
Hi,
I am working in oracle 8.1.7.4.0 and HP-UX os.I need a shell script which is to do the following tasks,
1. create a new temporary tablespace
2.assign the new temp tablespace to the database user level
3.drop the old temp tablespace
4. then create a temp tablespace with the old name
5. then assign the new temp tablespace to the database user level
6.drop the new temp tablespace
Kindly provide me the script for oracle 8.1.7.4.0
Rgds..here is one I prepared earlier (just like a TV chef)
set echo on
-- Create a New TEMP TEMP
create temporary tablespace temp2
tempfile 'dir/temp2.dbf' size 5M
autoextend on next 1M maxsize unlimited extent management local uniform size 1M;
-- Make the TEMP2 tablespace temp
alter database default temporary tablespace temp2;
-- Drop the orginal to recreate with new size
drop tablespace temp including contents and datafiles;
CREATE TEMPORARY TABLESPACE TEMP
TEMPFILE 'dir/temp01.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 30000M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 2M;
alter database default temporary tablespace temp;
drop tablespace temp2 including contents and datafiles; -
Script for Free Space in Datafiles
Hi
Got the below script from metalink [130866.1] to identify free space within a data file.Couple of questions
1)Is dba_Free_Space an exact indicator of how much space is available in a file.
2) What is the significance of using blocks in vs using bytes.
cursor c_freespace(v_file_id in number) is
select block_id, block_id+blocks max_block
from dba_free_space
where file_id = v_file_id
order by block_id desc;
Thanks in advance for you help.
Script for checking backwards for free space at end of file
REM Script is meant for Oracle version 9 and higher
REM -----------------------------------------------
set serveroutput on
exec dbms_output.enable(1000000);
declare
cursor c_dbfile is
select f.tablespace_name,f.file_name,f.file_id,f.blocks,t.block_size
from dba_data_files f,
dba_tablespaces t
where f.tablespace_name = t.tablespace_name
and t.status = 'ONLINE'
order by f.tablespace_name,f.file_id;
cursor c_freespace(v_file_id in number) is
select block_id, block_id+blocks max_block
from dba_free_space
where file_id = v_file_id
order by block_id desc;
/* variables to check settings/values */
dummy number;
checkval varchar2(10);
block_correction number;
/* running variable to show (possible) end-of-file */
file_min_block number;
/* variables to check if recycle_bin is on and if extent as checked is in ... */
recycle_bin boolean:=false;
extent_in_recycle_bin boolean;
/* exception handler needed for non-existing tables note:344940.1 */
sqlstr varchar2(100);
table_does_not_exist exception;
pragma exception_init(table_does_not_exist,-942);
begin
/* recyclebin is present in Oracle 10.2 and higher and might contain extent as checked */
begin
select value into checkval from v$parameter where name = 'recyclebin';
if checkval = 'on'
then
recycle_bin := true;
end if;
exception
when no_data_found
then
recycle_bin := false;
end;
/* main loop */
for c_file in c_dbfile
loop
/* initialization of loop variables */
dummy :=0;
extent_in_recycle_bin := false;
file_min_block := c_file.blocks;
begin
<<check_free>>
for c_free in c_freespace(c_file.file_id)
loop
/* if blocks is an uneven value there is a need to correct with -1 to compare with end-of-file which is even */
block_correction := (0-mod(c_free.max_block,2));
if file_min_block = c_free.max_block+block_correction
then
/* free extent is at end so file can be resized */
file_min_block := c_free.block_id;
else
/* no more free extent at end of file, file cannot be further resized */
exit check_free;
end if;
end loop;
end;
/* check if file can be resized, minimal size of file 16 blocks */
if (file_min_block = c_file.blocks) or (c_file.blocks <= 16)
then
dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
dbms_output.put_line('cannot be resized no free extents found');
dbms_output.put_line('.');
else
/* file needs minimal no of blocks which does vary over versions */
if file_min_block < 16
then
file_min_block := 16;
end if;
dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
dbms_output.put_line('current size: '||(c_file.blocks*c_file.block_size)/1024||'K'||' can be resized to: '||round((file_min_block*c_file.block_size)/1024)||'K (reduction of: '||round(((c_file.blocks-file_min_block)/c_file.blocks)*100,2)||' %)');
/* below is only true if recyclebin is on */
if recycle_bin
then
begin
sqlstr:='select distinct 1 from recyclebin$ where file#='||c_file.file_id;
execute immediate sqlstr into dummy;
if dummy > 0
then
dbms_output.put_line('Extents found in recyclebin for above file/tablespace');
dbms_output.put_line('Implying that purge of recyclebin might be needed in order to resize');
dbms_output.put_line('SQL> purge tablespace '||c_file.tablespace_name||';');
end if;
exception
when no_data_found
then null;
when table_does_not_exist
then null;
end;
end if;
dbms_output.put_line('SQL> alter database datafile '''||c_file.file_name||''' resize '||round((file_min_block*c_file.block_size)/1024)||'K;');
dbms_output.put_line('.');
end if;
end loop;
end;
Example output for Oracle version 9 and higher:
Tablespace: TEST Datafile: /oradata/v112/test01.dbf
cannot be resized no free extents found
Tablespace: UNDOTBS1 Datafile: /oradata/v112/undotbs01.dbf
current size: 9384960K can be resized to: 106496K (reduction of: 98.87 %)
SQL> alter database datafile '/oradata/v112/undotbs01.dbf' resize 106496K;
Tablespace: USERS Datafile: /oradata/v112/users01.dbf
current size: 328960K can be resized to: 117248K (reduction of: 64.36 %)
Extents found in recyclebin for above file/tablespace
Implying that purge of recyclebin might be needed in order to resize
SQL> purge tablespace USERS;
SQL> alter database datafile '/oradata/v112/users01.dbf' resize 117248KHi
Got the below script from metalink [130866.1] to identify free space within a data file.Couple of questions
1)Is dba_Free_Space an exact indicator of how much space is available in a file.
2) What is the significance of using blocks in vs using bytes.
cursor c_freespace(v_file_id in number) is
select block_id, block_id+blocks max_block
from dba_free_space
where file_id = v_file_id
order by block_id desc;
Thanks in advance for you help.
Script for checking backwards for free space at end of file
REM Script is meant for Oracle version 9 and higher
REM -----------------------------------------------
set serveroutput on
exec dbms_output.enable(1000000);
declare
cursor c_dbfile is
select f.tablespace_name,f.file_name,f.file_id,f.blocks,t.block_size
from dba_data_files f,
dba_tablespaces t
where f.tablespace_name = t.tablespace_name
and t.status = 'ONLINE'
order by f.tablespace_name,f.file_id;
cursor c_freespace(v_file_id in number) is
select block_id, block_id+blocks max_block
from dba_free_space
where file_id = v_file_id
order by block_id desc;
/* variables to check settings/values */
dummy number;
checkval varchar2(10);
block_correction number;
/* running variable to show (possible) end-of-file */
file_min_block number;
/* variables to check if recycle_bin is on and if extent as checked is in ... */
recycle_bin boolean:=false;
extent_in_recycle_bin boolean;
/* exception handler needed for non-existing tables note:344940.1 */
sqlstr varchar2(100);
table_does_not_exist exception;
pragma exception_init(table_does_not_exist,-942);
begin
/* recyclebin is present in Oracle 10.2 and higher and might contain extent as checked */
begin
select value into checkval from v$parameter where name = 'recyclebin';
if checkval = 'on'
then
recycle_bin := true;
end if;
exception
when no_data_found
then
recycle_bin := false;
end;
/* main loop */
for c_file in c_dbfile
loop
/* initialization of loop variables */
dummy :=0;
extent_in_recycle_bin := false;
file_min_block := c_file.blocks;
begin
<<check_free>>
for c_free in c_freespace(c_file.file_id)
loop
/* if blocks is an uneven value there is a need to correct with -1 to compare with end-of-file which is even */
block_correction := (0-mod(c_free.max_block,2));
if file_min_block = c_free.max_block+block_correction
then
/* free extent is at end so file can be resized */
file_min_block := c_free.block_id;
else
/* no more free extent at end of file, file cannot be further resized */
exit check_free;
end if;
end loop;
end;
/* check if file can be resized, minimal size of file 16 blocks */
if (file_min_block = c_file.blocks) or (c_file.blocks <= 16)
then
dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
dbms_output.put_line('cannot be resized no free extents found');
dbms_output.put_line('.');
else
/* file needs minimal no of blocks which does vary over versions */
if file_min_block < 16
then
file_min_block := 16;
end if;
dbms_output.put_line('Tablespace: '||c_file.tablespace_name||' Datafile: '||c_file.file_name);
dbms_output.put_line('current size: '||(c_file.blocks*c_file.block_size)/1024||'K'||' can be resized to: '||round((file_min_block*c_file.block_size)/1024)||'K (reduction of: '||round(((c_file.blocks-file_min_block)/c_file.blocks)*100,2)||' %)');
/* below is only true if recyclebin is on */
if recycle_bin
then
begin
sqlstr:='select distinct 1 from recyclebin$ where file#='||c_file.file_id;
execute immediate sqlstr into dummy;
if dummy > 0
then
dbms_output.put_line('Extents found in recyclebin for above file/tablespace');
dbms_output.put_line('Implying that purge of recyclebin might be needed in order to resize');
dbms_output.put_line('SQL> purge tablespace '||c_file.tablespace_name||';');
end if;
exception
when no_data_found
then null;
when table_does_not_exist
then null;
end;
end if;
dbms_output.put_line('SQL> alter database datafile '''||c_file.file_name||''' resize '||round((file_min_block*c_file.block_size)/1024)||'K;');
dbms_output.put_line('.');
end if;
end loop;
end;
Example output for Oracle version 9 and higher:
Tablespace: TEST Datafile: /oradata/v112/test01.dbf
cannot be resized no free extents found
Tablespace: UNDOTBS1 Datafile: /oradata/v112/undotbs01.dbf
current size: 9384960K can be resized to: 106496K (reduction of: 98.87 %)
SQL> alter database datafile '/oradata/v112/undotbs01.dbf' resize 106496K;
Tablespace: USERS Datafile: /oradata/v112/users01.dbf
current size: 328960K can be resized to: 117248K (reduction of: 64.36 %)
Extents found in recyclebin for above file/tablespace
Implying that purge of recyclebin might be needed in order to resize
SQL> purge tablespace USERS;
SQL> alter database datafile '/oradata/v112/users01.dbf' resize 117248K -
Disaster Recovery Scripts for Managed Server MSI Startup
I am trying to get some custom start scripts created for each of my managed servers in the event the admin console is down or server gets hosed. We use nodemanager to start the managed servers in a Windows environment. I have about 8 managed servers and they all use the same nodemanager classpath but all have different server start arguments (different memory settings, etc....) so I need to make different custom scripts for each.
Verbose Garbage Collection to Determine Heap Size .....this thread by Jay has been very helpful but so far I am just getting kicked back to the syntax screen like something is wrong in my script. Attached is the script and the output when I run it. Any help would be appreciated...thanks.
startManagedFPCE1.cmd contents
java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=beaadmin -Dweblogic.management.password=beaadminxxx -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\deprecated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
Results of running above script:
C:\Oracle\Middleware\user_projects\domains\SIT11\servers\FPCE1>java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=b
eaadmin -Dweblogic.management.password=beaadminsit11 -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle
\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\
sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\M
iddleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\dep
recated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options"bharat nagwani" <[email protected]> wrote:
>
Hi,
Configuration: Weblogic 8.1SP2 on Windows 2000, 1 admin server and 14
managed
servers
whats the right way from these 2 scenarious to create a domain on managed
server
1. create domain on managed server using configuration wizard. Then point
to this
domain from administration server remote start tab(root directory). This
is what
we do so far.This is the best way to create managed servers for your domain.
>
2. Just enter user_projects/domains folder/$domain name$ in remote start
tab(root
directory)
on admin server console and when you start the managed server from
admin console
the domain folder and files will be created.
Yes, the managed server is started in this case at the root directory you specified.
The difference is in the
1. first case we see all scripts like startManagedWeblogic, setenv, boot.properties
etc
this may help(we still dont know) if one wants to bring up managed
server
manually using
startManagedServer.bat without using node manager.Yes, that is correct. You will need to edit the startManagedServer.bat to include
the admin server URL, username and paswword..
>
2. second case only 2-3 files get created like msi-config.xml and SerializedSystemIni.dat
Basically first case is superset of second case.
What is the experience of people in this regard?
thanks much
bharat -
How can validate the ASM size and free space correctly?
Dears ,,
I faced problem in ASM size as it appeared in alert file as below
ORA-19504: failed to create file "+DG_DATA"
ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
ORA-15041: diskgroup space exhausted
So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
It seems that the shown free space is not real.
How can validate the ASM size and free space correctly?
Thanks & Regards,,*Oracle DBA* wrote:
Dears ,,
I faced problem in ASM size as it appeared in alert file as below
ORA-19504: failed to create file "+DG_DATA"
ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
ORA-15041: diskgroup space exhausted
So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
It seems that the shown free space is not real.
How can validate the ASM size and free space correctly?
Thanks & Regards,,
I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing . -
Need Help with Oracleasm - a kernel module for the ASM library
I am a beginner, trying to install Oracle RAC. I have a system with SuSE Linx 11 (64 bit) loaded. I need to get the correct ASMLib packages needed for installing ASM. I think I got the following packages that are needed for installing ASM
1) oracleasmlib- the ASM libraries (oracleasmlib-2.0.4-1.SLE11.x86_64.rpm)
2) oracleasm-support- utilities needed to administer ASMLib (oracleasm-support-2.1.3-1.SLE11.x86_64.rpm)
I am unable to find the third package.
3) Oracleasm - a kernel module for the ASM library
I looked at my kernel version it says "2.6.27.19-5-default". I am not sure where I can get the above third package. If you have an answer/know ase share your thoughts.
Thank YouHi!
Don't use ASMLib, it will be no longer available, it will only came in Oracle Unbreakable Kernel for Linux 6.
The easly way to set the permissions on your devices is with a /etc/init.d script that do the job.
Here is an example:
#! /bin/bash
# chkconfig: 2345 25 19
# description: Set ASM Permissions on to devices at boot.
case "$1" in
start)
/bin/chown oracle:oinstall /dev/sdb1
/bin/chmod 0660 /dev/sdb1
stop)
#do nothing
status)
ls -l /dev/sdb1
echo "Usage: $0 {start|stop|status}"
exit 1
esac
exit o
You need to replace the /dev/sdb1 for your acctual partitions.
Please check the Docs to be sure that you meet all pre-reqs.
http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm
http://docs.oracle.com/cd/E11882_01/install.112/e22489/toc.htm
http://docs.oracle.com/cd/E11882_01/install.112/e24321/toc.htm
Hope it's helps.
Best Regards,
Julio -
Where can I download the scripts for sample IX, SH schemas for 11g
Hi,
I have installed oracle 11g database without the sample schemas. In the standard set of sample schemas we had an example Information Exachange schema (for queue), and a Sales Historyschema . Howver I am not getting the sample scripts for these two schemas in my demo directory.
Can you please let me know where can I get access to the scripts?
I have a requirement for a OLTP datastore which can receive high volume of data from an external system(Expecting max of 6gb data). I am planning create a separate schema , with dedicated tablespaces, Is it a good idea to have one datafile with a maxsize set to 6gb or to have a set of 3 starting at 1000m locally managed and a max size of 2gb each. There are not many indexes needed, however I need to set up an in queue and out queue as well. If I create this schema them do I need to revisit my redolog groups or temp table sizing as well to keep my existing database performance intact?
Is there any standard guidelines to follow for a schema where you expect large volume of data,has multiple queues?
Many Thanks,
Chandanauser13057029 wrote:
Hi,
I have installed oracle 11g database without the sample schemas. In the standard set of sample schemas we had an example Information Exachange schema (for queue), and a Sales Historyschema . Howver I am not getting the sample scripts for these two schemas in my demo directory.
Can you please let me know where can I get access to the scripts?http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm#COMSC00002
>
I have a requirement for a OLTP datastore which can receive high volume of data from an external system(Expecting max of 6gb data). I am planning create a separate schema , with dedicated tablespaces, Is it a good idea to have one datafile with a maxsize set to 6gb or to have a set of 3 starting at 1000m locally managed and a max size of 2gb each. There are not many indexes needed, however I need to set up an in queue and out queue as well. If I create this schema them do I need to revisit my redolog groups or temp table sizing as well to keep my existing database performance intact?
Is there any standard guidelines to follow for a schema where you expect large volume of data,has multiple queues?Ask this question in a separate thread.
Aman.... -
Script to calculate the size of table
I am very new to scripting. My first script i need to make is for finding the total size of my oracle tables.
I have to provide two inputs that is the database name and tabale name
and the script should give me the size. This script will also be incorporated in crontab for checking the size of a particular table which is for txn logging and will be mailing us when the size of the table reaches 1gigs.
what i have in mind till yet is
#!/usr/bin/ksh
# Script to find sze of the table
# usage ./truncate_table.ksh ORACLE_SID TABLE_NAME
set -x
export ORACLE_HOME=/opt/oracle/product/9.2.0.4
SUMMARY=/tmp/truncate_table.log
date > $SUMMARY
export ORACLE_SID=$1
echo $ORACLE_SID
export TABLE_NAME=$2
if [ -z $ORACLE_SID ]
then
echo "Oracle SID not set"
exit
fi
export PATH=$ORACLE_HOME/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/openwin/bin:/usr/dt/bin:/opt/rational/clearcase/bin:/usr/local/samba/bin:/
export/home/oracle/bin:/u01/oracle/admin/adhoc:/opt/oracle/OPatch:/usr/ccs/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
${ORACLE_HOME}/bin/sqlplus -s '/ as sysdba'<<EOF>>$SUMMARY
set pagesize 0 feedback on verify on heading off echo on
select (bytes/1024/1024) as total_gigs from dba_segments where owner='SIEBEL' and segment_name='$TABLE_NAME'
exit;
EOF
But this is not working...
CAn someone helpselect (bytes/1024/1024) as total_gigs from dba_segments where owner='SIEBEL' and segment_name='$TABLE_NAME'You are missing ";" at the end of query. That's the reason why your script does not work.
export TABLE_NAME=$2Why you did export of TABLE_NAME? This doesn't make sense. The same as ORACLE_SID export.
Just use "TABLE_NAME=$2" -
Notification for Tablespace Full
This is 10g Grid Control.
I want to be notified by email when a tablespace space usage reaches warning threshold, but couldn't make it work. Here is what I did.
1). Notcifation method has been set and tested.
2). In Preferences -- Notification -- Rules, I created a new one called Tablespace Usage. In which I added a Metris of Tablespace Free Space and checked Three states (Critical, Warning, Clear) for which I want to receive notifications.
But I don't get any notification for Tablespace Space usage even I know for sure some of tablespaces have reached > 90%.
What is wrong here?
Thanks for your reply.YOu can set on the debugging as well. The script thats being called is sysman/admin/scripts/problemTbsp.pl. In the emd.properties file, you can change the PERL_???? to turn on DEBUG.
stop/start the emctl.
To fire the trigger again - edit the metrics, set it high (must have both warning and critical set due to some bugs) 99 and 100. Set the page refresh to every minute. The metric should clear. Then go set the metric really low say 10 and 20. Again set the refresh to minute - leave it on the screen. It should fire - showing an entry in the bottom half of the screen - regardless of notifications or rules or whatever. This is the first step in diagnosiing this problem.
Note this script problemTBSP.pl has been very buggy - be sure you have the latest version of the script.
$ more problemTbsp.pl
# $Header: problemTbsp.pl 01-jul-2005.11:11:17 rreilly Exp $
It has special circumstances in there for dictionary vs locally managed, auto extend vs non auto etc etc.
The sql its running is in the script - its not rocket science.
my $sql = "select a.tablespace_name,a.meg, a.maxmeg,a.file_name,a.file_id,a.ts#,
a.blocksize,a.flag, "
. " b.freebytes, b.maxfreebytes,nvl(c.ts#,-99) "
. " from "
. " (select f.tablespace_name, (f.bytes)/1048576 meg, "
. " (f.maxbytes)/1048576 maxmeg, f.file_name, f.file_id, "
. " ts.ts#, ts.blocksize, "
. " DECODE(BITAND(ts.flags,3),1,ts.dflminlen,0) flag "
. " from sys.ts\$ ts, sys.dba_data_files f "
. " where ts.contents\$ = 0 and ts.online\$ = 1 "
. " AND ( ts.bitmapped = 0 OR (ts.bitmapped != 0 AND bitand(ts.flags,3
) = 0)) "
. " AND bitand(flags,2048) != 2048 "
. " and f.tablespace_name = ts.name) a, "
. " (select tablespace_name,NVL(sum(bytes)/1048576, 0) freebytes , "
. " NVL(max(bytes/1024), 0) maxfreebytes "
. " from sys.dba_free_space group by tablespace_name) b, "
. " (select distinct s.ts# from sys.seg\$ s where s.maxexts < 2100000000 an
d s.maxexts - extents < 2 "
. " and exists (select 1 from sys.sys_objects so where so.header_block = s
.block# and "
. " s.file# = so.header_file and s.ts# = so.ts_number)) c"
. " where a.tablespace_name = b.tablespace_name and a.ts# = c.ts#(+) order
by a.tablespace_name, a.file_name"; -
Shell script for creating,altering, etc ., a database
hi there,
Please help me to find shell scripts for creating,altering, etc a database..
Thanks & Regards,
Balu.Thanks to all , but dbca generates XML files :
<DatabaseTemplate name="MYDB" description="" version="10.2.0.0.0">
<CommonAttributes>
<option name="ISEARCH" value="false"/>
<option name="OMS" value="false"/>
<option name="JSERVER" value="true"/>
<option name="SPATIAL" value="true"/>
<option name="ODM" value="true">
<tablespace id="SYSAUX"/>
</option>
<option name="IMEDIA" value="true"/>
<option name="XDB_PROTOCOLS" value="true">
<tablespace id="SYSAUX"/>
..................I need a file.sql script to launch in sqlplus. Something like the following :
CREATE DATABASE MYDB
USER SYS IDENTIFIED BY ***
USER SYSTEM IDENTIFIED BY ***
LOGFILE GROUP 1 ('/home/oracle/oracle/instances/oradata/MYDB/redo1/redo01.log') SIZE 15M,
GROUP 2 ('/home/oracle/oracle/instances/oradata/MYDB/redo2/redo02.log') SIZE 15M,
GROUP 3 ('/home/oracle/oracle/instances/oradata/MYDB/redo3/redo03.log') SIZE 15M
...................... -
Running Permission Scripts for App-V packages in VDI environment
Hi
We use App-V 5.0 SP1 in VDI environment.
We have a major problem with packages' permissions
Our users don't have administrative privileges on their machines.
As the option for "Security Descriptors" is discontinued, the only way to give permissions to a folder in a package is to use the VFSCACLS.vbs as a startup script of a package.
This way the first time users launch an application they're prompt to reopen it, and the second time they can use the application with the needed permissions.
The problem:
The script saves those permission changes under LOCALAPPDATA\AppV...
Therefore, everytime the users logoff the folder is deleted (VDI...) and again, they must run the script for the first again to get the permissions back after logon!
We cannot roam the LOCALAPPDATA\AppV folder as its size can be dozens of GBs...
Folder permissions with group policy is also not a solution, as the folder name changes everytime we upgrade a package and it's impossible to follow with hundreds of packages.
So it's either we're missing something critical in the architecture with VDI environment or there's a normal solution for these situations.
Would love to get some help
Thanks
Tamir LevyHi Nicke
that's what I did! the problem is that I find my self over and over again want to sequence packages in App-V 5.0 and forced to sequence it in App-V 4.6.
I really hope that it wasn't App-V team's goal. announcing App-V 5.0 and tell us it doesn't support many things so we will still need App-V 4.6 forever.
I have to maintain 2 different App-V environments with 4 different servers , 4 different sequencers and 2 clients on each computer. it doesn't make any sense for me to forced to stay with both of the versions forever.
correct me if I'm wrong but App-V 4.6 is a legacy application. the new versions cover only support on newer operating systems and nothing more. I won't be surprised if in the next version of MDOP won't come with App-V 4.6 anymore and Microsoft will announced
it's unsupported very soon.
Every time I open a ticket with MS Support the best thing I get is "It's a known issue, we can't tell when it will be fixed"
can you help me more ? move it forward to other people from the inside? at least agree with me that something is not as expected in App-V 5.0... :(
I love the technology, I believe in it, I'm kinda depend on it and I only want it to be better
Tamir Levy -
Using Scripts to detect document size in inches?
Is it possible that a script detects the document size in inches not in pixels?
Thanks for the help!The size an Image will print is a simple calulation the numbet of Pixel Wide Devided by the imageg current DPI resolution. And numbet of Pixel High Devided by the imageg current DPI resolution. You can always change the DPI while maintaining the same number of pizels using Image Size with resample NOT checked to change the image's print size. All the information can be retrived in a script and the script can change the image's print size with or without resampling the image.
Maybe you are looking for
-
How to get multiple subtotals in a query
I am trying to get 2 subtotals from the following data, 1 by dept, and 1 by account. A sample of data would be: DEPT ACCOUNT INVOICE AMT 1 A 123 10.00 1 A 456 12.00 1 B 789 11.00 1 B 012 10.00 2 C 234 16.00 2 C 656 10.00 2 D 711 5.00 2 D 800 7.00 I w
-
I have two queries. One is a main query that we pull from a form submission. The second is a small query resultset that lists different subgroups in my company and what main group they belong to. I pull several QoQ from the main query. In the main qu
-
Getting paper sizes list of currently installed printer
plz help me out i have to fetch the paper sizes supported for currently installed printer ,may it will be possible throw MediaSize class ? ASAP Thanks
-
How do I divide a page into 4, two rows and two columns?Dividing pages into 4?
I am trying to create calling cards and need to divide a4 page into four. Any suggestions?
-
hello my question is how to delete incoming email in CIC0 (ICWin)? sap help writes this is possible but i can not see any button for it. if you have it please write what is the name of workspace. is it possible to cut such a function for some users?