question about how to combine the two scripts.


Hello

I have a sql script that can display a table (or view) all the information, it works fine. I call it validate_table.sql, as below:

command prompt
accept invites owner "Enter table owner:
accept invites from TABLE_NAME "Enter object (table/View...) "name:"


column owner format a10 column 'owner '.
column format a30 topic 'Object name' object_name
column object_type format a15 direction "Type of object".
Status format a10 column titled "Status".
in the heading of column created format a20 "created."
the LAST_DDL_TIME format a20, heading 'LAST_DDL_TIME.
Select
owner
object_name
object_type
status
, to_char (created, "DD_MON_YY hh24:mi:ss") created
LAST_DDL_TIME,
Of
DBA_OBJECTS
where
object_name = upper ('& table_name') and owner = upper ('& owner');


command prompt

prompt -- ----------------------------------------------------------------------- ---

Guest - table/view structure-

prompt -- ----------------------------------------------------------------------- ---

command prompt


describe and owner... & table table_name

command prompt

prompt -- ----------------------------------------------------------------------- ---

guest - list assigned user/subsidies-

prompt -- ----------------------------------------------------------------------- ---

command prompt

set pagesize 50000
set linesize 10000
set verify off
Set feedback off
column lvl format A4 direction "Lvl".
proprietary format of columns A14
format column in table_name A29
A38 dealer column format
column privilege A10 format


SELECT 'Role' lvl, t.table_name, t.grantee, t.owner, t.privilege
OF dba_tab_privs t
WHERE t.grantee IN (SELECT FROM dba_roles role WHERE = role t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
UNION
SELECT 'User' lvl t.table_name, t.grantee, t.owner, t.privilege
OF dba_tab_privs t
WHERE t.grantee IN (SELECT username FROM dba_users WHERE username = t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
UNION
SELECT 'Pub' lvl, t.table_name, t.grantee, t.owner, t.privilege
OF dba_tab_privs t
WHERE t.grantee = 'PUBLIC' and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
ORDER BY 1, 2, 3;

command prompt

prompt -- ----------------------------------------------------------------------- ---

guest - list of synonyms created.

prompt -- ----------------------------------------------------------------------- ---

command prompt


proprietary format of columns A15
synonym_name A20 column format
A15 table_owner column format
format column in table_name A40
DB_link A40 column format

Select the owner, synonym_name, table_owner, table_name, DB_link from DBA_synonyms where Table_name = upper ('& table_name') stopped by the owner;


command prompt

prompt -- ----------------------------------------------------------------------- ---

guest - list index created-

prompt -- ----------------------------------------------------------------------- ---

command prompt

Select
table-name
index_name
index_type
nom_tablespace
status
of DBA_indexes
WHERE table_name = upper ('& table_name') and owner = upper ('& owner')
order of table_name, index_name;


command prompt

prompt -- ----------------------------------------------------------------------- ---

guest - list of constraints-

prompt -- ----------------------------------------------------------------------- ---

command prompt

format column in table_name A15
format of column cons_type A15
cons_name A20 column format
check_cons A25 column format
VALIDATED A20 column format
column status A10 format
last_change A20 column format

Select
table-name
(case constraint_type
When 'P', then 'Primary Key '.
When 'R' then 'Foreign Key'
When 'C' then 'check '.
When 'U' then 'single '.
When 'o' then 'read only display '.
When 'V' then 'check the view. "
When 'H' then 'Hash expression. "
When 'F' then 'REF column.
When the of ' then 'additional logging.
cons_type end)
constraint_name cons_name
condition_de_recherche check_cons
status
VALID
last_change
of dba_constraints
where owner = upper ('& owner')
and table_name = upper ('& table_name')
order of cons_type;

I have another script that allows to display the newly created tables (table, table names) in the last 24 hours.

SET SERVEROUTPUT ON;

DECLARE

CURSOR tmp_cur IS

SELECT master, object_name

FROM dba_objects

WHERE object_type in ('TABLE', 'SEE') and the owner not in ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN") and last_ddl_time > sysdate - 1;

tmp_rec tmp_cur % ROWTYPE;

BEGIN

FOR tmp_rec IN tmp_cur LOOP

DBMS_OUTPUT. PUT_LINE)

tmp_rec. Owner | ' ' || tmp_rec.object_name);

END LOOP;

END;

/

The gap of the first script (validate_table.sql) is that it can only check table one by one by manual entry, then how can I combine these two scripts, to make a scipt that can check all newly created tables (not a table) in the last 24 hours?

I thank very you much in advance!

Hello

If you already know how to find the owner and all the tables created table_name recently.  One thing you can do is to change all the WHERE clauses in validate_table.sql, so instead of things like

where object_name = upper ('& table_name') and owner = upper('&owner');

you say

WHERE (owner, object_name) IN

(

SELECT master, object_name

FROM dba_objects

WHERE object_type in ('TABLE', 'SEE')

AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

AND last_ddl_time > SYSDATE - 1

)

;

Here is another approach:

Validate_table. SQL is quite handy as it is.  You may want to run this script for tables, even when you know that they are not new.  Divide into 2 scripts: one called ask_and_describe_table.sql, which looks like this:

-Ask_and_Describe_Table.sql

accept invites owner "Enter table owner:

accept invites from TABLE_NAME "Enter object (table/View...) "name:"

-You can use any name path instead of d:\some_dir below:

@d:\some_dir\describe_table & owner, table_name

and the other one called Describe_Table.sql, which starts like this:

-Describe_Table.sql

DEFINE owner = & 1

DEFINE table_name = & 2

column owner format a10 column 'owner '.

...

and continues with the same exact content as validate_table.sql.

Now, to write another script (I'll call it Describe_Recent_Tables.sql):

-Describe_Recent_Tables.sql - create and run Describe_Many_Tables.sql

-Turn OFF the devices designed to help people to read the output:

SET ECHO OFF

SET FEEDBACK OFF

SET PAGESIZE 0

VERRIFY OFF SET

-Create a Describe_Many_Tables.sql:

COIL d:\some_dir\describe_many_tables.sql

SELECT ' @d:\some_dir\describe_table '

||      owner

||      '  '

||      object_name

FROM dba_objects

WHERE object_type in ('TABLE', 'SEE')

AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

AND last_ddl_time > SYSDATE - 1;

SPOOL OFF

-Features lighting designed to help people to read the output:

SET ECHO ON

SET FEEDBACK ON

SET PAGESIZE 50

SET VERRIFY ON

-Describe_Many_Tables.sql performance

@d:\some_dir\describe_many_tables

I guess that all of your tables have standard names (for example, start with a letter, no spaces in the name,...), which don't require quotation marks.  If they could, then the same basic approach will work, but the details are a little messier.

When you want to see the information on a single table or view, no matter how old it is, driven

Ask_and_Describe_Table

or, if you do not need to question the owner of the table and the name, something like

Describe_Table SCOTT EMP

(You can find that you really need not Ask_and_Describe_Table.sql).

When you want to do this for all the tables created in the last 24 hours:

Describe_Recent_Tables

Tags: Database

Similar Questions

  • I have two script. one for indesign and another for photoshop. How can I combine the two scripts?


    Hi all

    I have a script for indd that convert a table selected user in JPG format (1276 px width, height varies). Second script photoshop asking to select jpg file and then check if the height in pixels is less than 1018 pixel, can he expand canvas size (height) to 1018 px.

    How can I combine the two script, tip, or how to start would be useful? The workflow must be:

    • the user select table in the indd document
    • export table in jpg format
    • script you will be asked to select the file table jpg or if it is possible to automate this would be awesome.
    • enlarge the height of the canvas to 1018 px

    Thank you

    Marie rosine

    PS: I have already read the Java script tool guide pdf but unable to understand

    Yes and the documentation is pretty self-explanatory.

    However, here is an excerpt:

    function callPhotoshop(file) {
       var bt = new BridgeTalk;
    
       bt.target = "photoshop";
    
       bt.body = "function main (){ return confirm('Am I in Photoshop?'); }; main();";
    
      bt.onResult = function(resObj)
      {
      var myResult = resObj.body;
      alert( myResult? "PS code was correctly executed" : "Something wrong happened" );
      }
    
       bt.send();
    }
    
    callPhotoshop();
    

    HTH,

    Loïc

    http://www.ozalto.com

  • I try to combine a picture of my sister with a picture of a poem next to her. How to combine the two into a single photo?

    Paint or Windows Photo Gallery

    I try to combine a picture of my sister with a picture of a poem beside it, how to combine the two into a single photo?

    If you have the poem recorded in an image format,
    the following freeware can create a side by side
    Panorama.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download IrfanView
    http://MajorGeeks.com/IrfanView_d4253.html
    (filename: iview433_setup.exe)
    (uncheck if you don't want Google Chrome)

    Download plug-ins too...

    IrfanView plugins
    http://MajorGeeks.com/IrfanView_PlugIns_d4908.html
    (filename: irfanview_plugins_433_setup.exe)

    When the program is installed... read more...

    Open IrfanView and go... Image / create the Image of the Panorama...
    (this will open the screen to "Create a panorama image")

    On the screen to "Create a panorama image"... left click on the add images"" button.
    (Displays the 'Open' screen. Now, drill down to the
    the folder that contains your saved Photos of veterinarians.

    Now... click left (highlighted), the two images, you want to join.
    (you can select more than one if you hold down your Ctrl key)
     
    The two images highlight... left click on the button 'open '.
    (Or... you can add the images one at a time... which is always easier)

    Now, go back to the screen "Create the panorama image.
    and the file names of the selected pictures need to be in the
    Field "Input Images.

    Now with the names of two files in 'Images of entry' field...
    You can left click on the button 'create Image '.

    (the positions left and right of these images can be swapped in)
    selection of a file name and using the "mount image" / "Move."
    Images down"buttons...)

    Now you should see a display of the combined image.
    Reach... File / save as...

    Choose a backup location / enter a file name / choose a format...
    On the left, click on the button "Save..."

  • How to combine the two fonts in a logo type?

    I've created a customer logo ID, consisting of two fonts. The name of the customer is Trajan Pro. The logo must also include a "Registered" symbol (the circled R) after the name. Unfortunately, using Trajan Pro mode Exhibitor does not look good, especially scaling down and with a circle around the R. To work around this problem, I used the Arial font to create the® in a supplemental box, be able to fine tune its size and position. It's great for once, but I would like to be able to combine the two so that the name of the customer in Trajan Pro and the symbol "Recorded" in Arial can be re-scaling or repositionnes in unison and saved for future use. What is the best way to do it?  Here is an article of the logo to demonstrate what I have:logo+regcircle.jpg

    Select the two text blocks and go to Type > vectorize. Group them. Now that you have drawn, no text. It is usually a good idea to save a logo in a separate file, which can be placed. Put the logo in its own file on one page of appropriate size. Save the file and export a PDF of print quality. Link to the PDF file when using the logo in other files.

  • Questions about how to avoid the "while OTHERS"

    Hello

    I am currently teaching myself PL/SQL. I have the script according to which uses SO that OTHERS (not a good thing):
    undef sv_student_id
    
    declare
      v_student_id          student.student_id%type  := &sv_student_id;
      v_total_courses       number;
    
    begin
      if v_student_id < 0 then
         raise_application_error(-20000, 'A student ID cannot be negative');
      end if;
    
      exception
        when others then
          dbms_output.put_line('Got an exception');
    end;
    /
    When I run the above script and enter the value - 10 when prompted, I get the following output:
    SQL> @213c
    Enter value for sv_student_id: -10
    old   2:   v_student_id          student.student_id%type  := &sv_student_id;
    new   2:   v_student_id          student.student_id%type  := -10;
    Got an exception
    What leaves to be desired (like a better message ;))

    The questions are:

    1. How can I get the outer exception to display the error message specified in the raise_application_error instead of a generic message (such as 'Got to exception')?

    2. I want catch exception using something specific, like "when-20000 then" (which does not), instead of the Tote so "than others'.

    Thank you for helping,

    John.

    Published by: 440bx - 11 GR 2 on Aug 14, 2010 08:01 - plural for questions

    1)

    undef sv_student_id
    
    declare
      v_student_id          number  := &sv_student_id;
      v_total_courses       number;
    
    begin
      if v_student_id < 0 then
         raise_application_error(-20000, 'A student ID cannot be negative');
      end if;
    
      exception
        when others then
          dbms_output.put_line('error_code='||sqlcode ||', error_message='|| sqlerrm);
    end;
    / 
    

    2)

    undef sv_student_id
    
    declare
      v_student_id          number  := &sv_student_id;
      v_total_courses       number;
      my_ex exception;
      pragma exception_init(my_ex, -20001);
    begin
      if v_student_id < 0 then
         raise my_ex;
      end if;
    
      exception
        when my_ex then
          dbms_output.put_line('my catch!');
    end;
    / 
    

    and maybe, that

    undef sv_student_id
    
    declare
      v_student_id          number  := &sv_student_id;
      v_total_courses       number;
    begin
      if v_student_id < 0 then
         raise_application_error(-20001, 'A student ID cannot be negative');
      end if;
    
      exception
        when others then
          if sqlcode = -20001 then
          dbms_output.put_line('-20001 message');
          elsif sqlcode = -20002 then
          dbms_output.put_line('-20002 message');
          ...
         end if;
    end;
    / 
    
  • Four questions about how to change the Satellite L650 - 1 M 0

    Hello

    The laptop Toshiba L650 - 1 M 0 is possible to add the Bluetooth?
    Currently, I don't have a WiFi card.

    I have a second question:
    The laptop Toshiba L650 - 1 M 0 is possible to replace the ports USB 2.0 to 3.0?

    And the third question:
    The laptop Toshiba L650 - 1 M 0 is possible to replace the matrix with a resolution of 1366 x 768 full HD (1920 x 1080) resolution?

    Most recent:
    The laptop Toshiba L650 - 1 M 0 is possible to replace the processor and graphics card?

    These questions are for the future. I mention these parts when you are already old and weak.

    Sorry for my bad English, but I used the Google Translator because I do not know how the English language. I only know the Polish ;)

    Please write without mistakes, because the Google translator will be able to translate for me.

    > Is that the laptop Toshiba L650 - 1 M 0 is possible to add the Bluetooth?

    I think it would be possible to upgrade with the combo Wifi/BT card.
    But I haven't found any info what WLan/BT cards combo would be compatible 100%.
    You should test

    > Laptop Toshiba L650 - 1 M 0 is possible to replace the ports USB 2.0 to 3.0?
    No, the USB ports are part of the motherboard.

    > Is that the laptop Toshiba L650 - 1 M 0 is possible to replace the matrix with a resolution of 1366 x 768 full HD (1920 x 1080) resolution?

    I guess it would be possible, but we must find a 15.6 screen that supports such a resolution.

    > Laptop Toshiba L650 - 1 M 0 is possible to replace the graphics card and processor?

    GPU is not extensible.
    In some cases its possible to upgrade the processor, but you will need to check which processors are supported by Mobile Intel HM55 Express Chipset
    But even if the chipset would be favourable to a new processor, there would be still pending regarding BIOS support.
    However, this upgrade took isn t supported by any laptop manufacturer, and I guess that its your own risk by doing this.

  • How to combine these two scripts

    I have a script that displays the host name, the name of the data store and the NAAid in a csv file

    $VMhosts = get-datacenter xxxxxxxx | Get-VMHost

    $data = {foreach ($vmhost to $VMhosts)

    $vmhost | Get-Datastore.  Select @{N = "$vmhost"; E = {$vmhost. Name}},name,@{N="CanonicalNames '; E = {[string]: join (",",($_.ExtensionData.Info.Vmfs.Extent |)} %{$_. DiskName}))}}

    Get-VMHost $vmhost | Get-ScsiLun - CanonicalName $naa

    }

    $data | Export-Csv "C:\report.csv" - NoTypeInformation - UseCulture

    Then I have another script that if I put the ID NAA in a txt file it read and give me all the multitracks among other parameters

    $naaids = get-content "c:\ctluns.txt".

    {foreach ($naa to $naaids)

    Get-Cluster ctclt | Get-VMHost | Get-ScsiLun - CanonicalName $naa | Export-Csv "c:\ctpaths.csv".

    }

    I want a script that gives me all the four elements in a csv file.  Name of host, data store name, Id NAA and path.    I am struggling with getting this works specfically feeding the NAA ID from a script in the script line two that pulls the info multichannel.  Can anyone help?

    If you want only the MultipathPolicy, you can remove the rest of the attributes.

    Note: This script will take a large amount of time to run if you have to many data warehouses.

    Here it is:

    
    $VMhosts = Get-datacenter xxxxxxxxxx | Get-VMHost
    $output=@()
    foreach($vmhost in $VMhosts){
      $datastores = $vmhost | Get-Datastore
      $paths =@()
      foreach($dt in $datastores){
      $extentDatastore = $dt.ExtensionData.Info.Vmfs.Extent
      $extentDatastore| %{
            $path = $vmhost |Get-ScsiLun -CanonicalName $_.DiskName
    
            $ConsoleDeviceName = $path.ConsoleDeviceName
            $LunType = $path.LunType
            $CapacityGB = $path.CapacityGB
            $MultipathPolicy = $path.MultipathPolicy
            $RuntimeName = $path.RuntimeName
            $Model = $path.Model
            $Vendor = $path.Vendor
            $tempOutput = ""| select VMHost,DatastoreName,CanonicalNames,ConsoleDeviceName,LunType,CapacityGB,MultipathPolicy,RuntimeName,Model,Vendor
            $tempOutput.VMHost = $vmhost.Name
            $tempOutput.DatastoreName = $dt.Name
            $tempOutput.CanonicalNames = $_.DiskName
            $tempOutput.ConsoleDeviceName = $ConsoleDeviceName
            $tempOutput.LunType = $LunType
            $tempOutput.CapacityGB = $CapacityGB
            $tempOutput.MultipathPolicy = $MultipathPolicy
            $tempOutput.RuntimeName = $RuntimeName
            $tempOutput.Model = $Model
            $tempOutput.Vendor = $Vendor
            $output+= $tempOutput
    
      }}
    }
    $output| Export-Csv "c:\ctpaths.csv" -NoTypeInformation -UseCulture
    
  • How to combine the two queries into a single

    Hi gurus,

    SQL > select * from v version $;

    BANNER

    ----------------------------------------------------------------

    Oracle Database 10g Release 10.2.0.4.0 - Production 64-bit

    PL/SQL Release 10.2.0.4.0 - Production

    CORE 10.2.0.4.0 Production

    AMT for Linux: release 10.2.0.4.0 - Production

    NLSRTL Version 10.2.0.4.0 - Production

    SQL >

    I have following two queries. How can I convert these two queries into one with the same result?

    1ST QUARTER

    SELECT id, $vdate, SupplierName, venddate, vid

    THE SELLER

    WHERE processid = 32

    AND venddate is null

    AND vid to (select vid from view_vid where type = 'PDX')

    AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 55)

    AND (id, $vdate) in (select id, vidate from market_data where marketed_date is null)

    AND id not in (select id from location)

    Q2

    SELECT id, $vdate, SupplierName, venddate, vid

    THE SELLER

    WHERE processid = 20

    AND venddate is null

    AND vid to (select vid from view_vid where type = 'PBX')

    AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 40)

    AND (id, $vdate) in (select id, vidate from market_data where region_date is null)

    AND id not in (select id from location)

    I can the UNION queries these two, but is there some way I can write a single query that gives me the same result as above two queries?

    Any help would be much appreciated

    Thanks in advance

    Sorry, it lack

    SELECT id, $vdate, SupplierName, venddate, vid

    THE SELLER

    ProcessID WHERE in (32.20)

    AND venddate is null

    AND vid to (select vid from view_vid where type = case when processid = 32

    then "PDX".

    else "PBX".

    end)

    AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = case when processid = 32

    then 55

    40 else

    end)

    AND (id, $vdate) in (select id, vidate from market_data cases where processid = 32)

    then marketed_date

    of other region_date

    end to the null value

    )

    AND id not in (select id from location)

    Concerning

    Etbin

  • Question about how 'First' makes the sequences

    Hi all

    I have a small question. I have a calendar in which I placed a transparent video with a timecode effect thereon for the purpose of lining of the stuff. I turned the visibility of it, but I wonder if I should remove it before as I give to improve the rendering time. First will interfere with him or she will calculate that it is there as an object for "invisible" also?

    This may sound really stupid to ask, but I'm learning how to be as effective as possible in my workflow and if first does not care that it is because he is disabled, so I'd be inclined to let incase I need it again, but if she would accelerate rendering my project then I would take it before my final DVD build I intend to publish.

    Any thoughts?

    Premiere Pro makes that material visible. So feel free to leave there with visibility turned off.

    Edit: to prove to yourself, add an effect to transparent video which causes the rendered line go red. As a"camera view". Die the eyeball and the Red goes. Make sense?

  • Question about how Oracle manages the Redo logs

    Hello

    Assuming a configuration which consists of 2 redo log groups (groups A and B), each group of 2 disks (disks A1 and A2 for Group A) and B1 and B2 disks for Group B. Additionally, assume that each redo log file resides by itself in a disk storage device and that the device is dedicated to her. So in the situation described above, there are 4 discs, one for each redo log file, and each disc contains nothing other than a redo log file. Also, assume that the database is in ARCHIVELOG mode and the files from archive is stored on another different set of devices.

    kind of graphically:
        GROUP A             GROUP B
    
          A1                  B1
          A2                  B2
    The question is: when the disks that make up the Group A are filled and Oracle switches to the disks in the Group B, can the group drives to take offline, perhaps even physically removed from the system if necessary without affecting the functioning of the database? Can the archiver process temporarily delayed until the disks (which have been removed) are presented online or is the DBA have to wait until the end of the process to archive a copy of the redo log file creating in archive?

    Thank you for your help,

    John.

    Hello
    A journal of the groups fall

    To remove a group of online redo logs, you must have the ALTER DATABASE system privilege. Before you delete a line redo log group, consider the following precautions and restrictions:

    * An instance requires at least two groups of files logging online, regardless of the number of members in the groups. (A group is one or more members.)
    * You can delete a group of newspapers online redo only if it is inactive. If you need to drop the current group, first force a log switch occurs.
    * Make sure a group of online redo logs is archived (if archiving is enabled) before dropping. To see if this happens, use the view LOG V$.

    SELECT GROUP #, ARCHIVED, STATUS FROM V$ LOG;

    GROUP # ARC STATUS
    --------- --- ----------------
    1 ACTIVE YES
    2. NO CURRENT
    3 INACTIVE YES
    4 INACTIVE YES

    Delete a group of newspapers online redo with the SQL ALTER DATABASE statement with the DROP LOGFILE clause.

    The following statement drops redo log group number 3:

    ALTER DATABASE, DROP LOGFILE GROUP 3;

    When a group of online redo logs is deleted from the database, and you do not use Oracle managed files, operating system files are not removed from the disk. Instead, control of the associated database files are updated to remove members of the Group of the database structure. After deleting a group of online redo logs, make sure the drop completed successfully and then use the command of operating system appropriate to delete the dropped online redo log files.

    When you work with files managed by Oracle, the cleaning of operating system files is done automatically for you.
    Your database will not be affected as you can work with 2 files, redo log in each group, as the minimum number of redo log in a database file is two because the process LGWR (newspaper writer) writes in the redo log in a circular way. If the process crashes because you have 2 groups only if you want to remove 1 Add a third and make that the current group and remove the one you want to be offline.

    Please refer to:
    http://download.Oracle.com/docs/CD/B10500_01/server.920/a96521/onlineredo.htm#7438
    Kind regards
    Mohamed
    Oracle DBA

  • Question about how to include the virtual machine output

    Currently, using this command:

    Get - vm | Get-networkadapter | ForEach-Object {Write-Host $_.} The name', ' {$_.macaddress} '.

    Gives me this result:

    NIC 1, 00:50:56:bc:00:1 c

    NIC 1, 00:50:56:bc:00:28

    I'm interested also in writing the name of real virtual machine as well.

    name of the virtual machine 1, NIC 1, 00:50:56:bc:00:1 c
    name of the virtual machine 1, NIC 1, 00:50:56:bc:00:28

    Don't know how to work out of virtual machine name as 'Name' asks also the network card information.

    Try it like this

    $report = foreach($vm in (Get-VM | where {$_.PowerState -eq "PoweredOn" -and $_.Version -eq "v7"})){
        Get-NetworkAdapter -VM $vm  | `    Select @{N="VMname";E={$vm.Name}},
             @{N="MAC address";E={$_.MacAddress}}
    }
    
    $report | Export-Csv ".\test.csv" -NoTypeInformation -UseCulture
    
  • How to combine the two groups under the single authorization rule in the OAM

    Hi people,

    I have an authorization rule that allows the user to access resources based on their ldap group memberships (the name of the group appears indeed as a people tab entry allow access). However, it does work if I have a single defined group. I would add another group, OAM begins to enforce an OR operator, instead of one and. In other words, if the rule Authz groups A and B, and that the user is a member of Group B, but no group has, it still gets access. The only way that this works if I create one rule Authz by each LDAP group, I'm interedted, then use one AND inside the Authz Expression.

    Any help is appreciated
    Thank you, novel

    Hi Roman,

    It is as expected. When you select several groups in an authorization rule, you are saying 'allow access to these groups. This is consistent with when you select several people - 'allow access to one of these people. " The everything (i.e. or) is implied and I think that it is valid. In addition, as you say, OAM gives you a way to reach the AND through the expression.

    If your folder is AD or ADAM, membership in the group details are also stored in the user profile and so there, you might be able to achieve what you want in a rule unique authz via LDAP rule.

    -Vinod

  • Very basic question about how to speed script CLEARDATA.

    CLEARDATA:
    ========
    Hi there, the two scripts will cause the same, but the following, which is faster (1) or (2)? Assuming that the data and the same sets for each. Thank you!


    CACHE ALL TOGETHER;
    SET CACHE HIGH;
    SET AGGMISSG
    SET HIGH LOCKBLOCK;
    SET CALCPARALLEL 4;
    UPDATECALC OFF SET;

    (1)
    DIFFICULTY (& InitPeriod: & ActualPeriod, & ActualYear, & CalcScenario, "WorkingInput")
    @IDESCENDANTS ("business district"), @IDESCENDANTS ("CC"), Fix (@IDESCENDANTS ("Entity"), @IDESCENDANTS ("Product")) <-sparse Dimensions
    CLEARDATA "USD";
    ENDFIX
    ENDFIX
    CLEARBLOCK VACUUM;


    (2)
    DIFFICULTY (& InitPeriod: & ActualPeriod, & ActualYear, & CalcScenario, "WorkingInput")
    CLEARDATA "USD";
    ENDFIX
    CLEARBLOCK VACUUM;

    CACHE ALL TOGETHER;
    SET CACHE HIGH;
    SET AGGMISSG
    SET HIGH LOCKBLOCK;
    SET CALCPARALLEL 4;
    UPDATECALC OFF SET;

    DIFFICULTY (& InitPeriod: & ActualPeriod, & ActualYear, & CalcScenario, "WorkingInput")
    DIFFICULTY (@RELATIVE ('entity', 0), @RELATIVE ("Business Area", 0), @RELATIVE ('CC', 0), @RELATIVE ("product", 0))
    CLEARDATA "USD";
    ENDFIX
    ENDFIX
    CLEARBLOCK VACUUM;

    Fixing Level0 blocks like the above calc data erasure
    Loading new data
    Setting the update rollup on Aggmissing
    The Total process takes less time compared to
    Deleting the data for all levels
    Loading new data
    ROLLUP

  • Combine the two projects into one

    I know it is a very popular question and I read many answers excellent previous answers.  The two most popular procedures seem to be simple copy - paste and use clips of compounds with copy / paste.  CPF has improved this process over the years and I ask the question again to get the benefit of current thinking.   I have an iMac (mid-2011) OS X 10.11.4 and FCP worm 10.2.2.  I have two separate events within the same library.  There is a completed project, with all the transitions, effects and music, located within each discipline.    Current ideas on how to combine these two projects into one would be greatly appreciated.

    Thank you.

    Copy and paste is the only method I know.

    Open the project in the timeline first.

    Open the second project in the timeline panel. Only one project appears at the same time.

    Select an item in the timeline and press command + A to select all, then control + C to copy.

    Use the project navigation arrows to return the first project:

    Move the playhead to where copied clips must be glued and press command + V.

    Al

  • combines the two text fields

    Hello, I've created a form with Adobe pro XI. I want to create a text field that combines the two fields (Field1 and Field2) text. How can I do?

    If the third field does not need to be editable, you can use a calculation script customized to what is something like the following:

    Custom calculation script

    (function () {}

    Get the field values as strings

    var s1 = getField("Text1").valueAsString;

    var S2 = getField("Text2").valueAsString;

    Set the value of this field to the concatenation of two strings

    Event.Value = s1 + s2;

    })();

Maybe you are looking for

  • Satellite M200: graphics card hangs after upgrade to Win7

    Hello I just bought a new Windows 7 ultimate and installed on my PC toshiba laptop M200 last week, and all the drivers have been installed, including the Intel graphics driver.But somehow, I still have this strange graphic error on my laptop. I alway

  • Satellite L30-134 and Pentium M - is it possible?

    Hello Is it possible to place the Pentium M processor for laptop Satellite L30-134? This chipset is flat leading edge computer laptop? THX, Poland Rafal

  • System shuts down randomly.

    System shuts down randomly. Watched the Sytem log and found this. Event ID: 1003 category: 102. Error code 1000000a, 99e84008 parameter1, parameter2 00000002, parameter3 00000001, parameter4 8051f78f. No idea if it's the hardware or software associat

  • Work online in Windows Live Mail

    I clicked on work offline in Windows Live Mail. Now I can't get back online, regardless of how many times I click go online. When I first open Windows Live Mail he asks me if I want to go online. I say yes, and then he asked a second time if I want t

  • Add webcam to 14.1 widescreen T61?

    We have a T61 14.1 in our office that we would add a webcam also. We could buy the framework inside which the camera, and we could he install ourselves? Someone at - it a reference number and a phone number where to order? Thank you!