Need a Script to pull data from use of resources based on the resource pool by.

LucD I have created the script, but I wanted to add additional information such as total memory, CPU, Avg Total memory usage, below, the Avg CPU usage total storage.etc

$report = @)

{foreach ($cluster Get-cluster)

foreach ($rp in Get-ResourcePool-location $cluster) {}

foreach ($vm in (Get-VM-location the $rp)) {}

$report += get-disk hard - VM $vm |

Select @{N = "Cluster"; E = {$cluster. Name}},

@{N = "ResourcePool"; E = {$rp. Name}},

@{N = "VM"; E = {$vm. Name}},

@{N = 'HD'; E={$_. Name}},

@{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},

@{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"

@{N = 'Path VMDK'; E={$_. File name}}.

@{N = "Format"; E={$_. StorageFormat}},

@{N = ' Type'; E={$_. DiskType}},

@{N = 'VM tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},

@{N = "CapacityGB"; E={$_. CapacityGB}}

}

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

}

}

Something like below the lines wanted to add in my script above but could not understand how do. Need to add information resources as much as possible. Please help me on this.

@{N='GHz CPU capacity';} E={[math]::Round($_. CpuTotalMhz / 1000 , 2 )}},

@{N="GHz CPU used";} E={[math]::Round($_. CpuUsageMhz / 1000, 2 )}},

@{N="CPU GHz free";} E={[math]::Round(($_. CpuTotalMhz - $_. CpuUsageMhz) / 1000 , 2 )}},

@{N='Go memory capacity';} E={[math]::Round($_. MemoryTotalGB , 2 )}},

@{N="Used memory GB";} E={[math]::Round($_. MemoryUsageGB , 2 )}},

@{N="GB free memory";} E={[math]::Round(($_. MemoryTotalGB - $_. MemoryUsageGB) ,2 )}}



The lines to add are displaying the results of a calculation on performance data, which are obtained through Get-Stat.

In this script you better start from the script where you have taken these lines and then add the properties of the 1st script.

In the objects returned by Get-Stat, you have access to the virtual machine through the property of the entity.

Tags: VMware

Similar Questions

  • Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform?

    Hello world

    Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform? I need to build a test environment in labview, but entries must be purchased from the microcontroller MC024012 Sauer-Danfoss. The problem is that this microcontroller interface provides the programming amiente MORE + 1 Sauer-Danfoss. Can you help me?

    Thank you

    Elza Figueiredo

    double post and bad advice

  • Need powershell scripts to collect information from vm disk

    Hello

    I need two scripts to collect information from vm drive,

    1 script to collect information vm disk mode

    Expected results:

    The virtual computer name. Name of ESX. Cluster name | VMDK name | Device label. disksizeInGB | diskmode

    Disc-> Just need the info as persistent or independent_persistent mode

    2. script to collect info RDM of Vm

    Expected results:

    The virtual computer name. Name of ESX. Cluster name | DeviceName | File name | Compatibility mode | Size

    The first script

    Get-VM | %{
         $vm = $_
         $vm | Get-HardDisk | %{
              $_ | select @{N="VM";E={$vm.Name}},
                   @{N="ESX";E={$vm.Host}},
                   @{N="Cluster";E={(Get-VMHost $vm.Host | Get-Cluster).Name}},
                   @{N="VMDK";E={$_.Filename}},
                   @{N="Device Label";E={$_.Name}},
                   @{N="disksizeInGB";E={"{0:N1}" -f ($_.CapacityKB/1MB)}},
                   @{N="Diskmode";E={$_.Persistence}}
         }
    } | ft -AutoSize -Force
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • I want to delete data from my i cloud storage for the little free space without increasing the storage capacity. How to do?

    I want to delete data from my i cloud storage for the little free space without increasing the storage capacity. How to do?

    Storage of parameters/iCloud/Storage/manage or delete some of the data being synchronized with iCloud, such as photos.

  • Pulling data from a selection of the option button to use in the field

    I have a radio with 9 options button (1 000, 2 000, 3 000... 9 000). It's a form of insurance, and I can't change to a drop down or fill-in, etc..  I need a later field in the form to the number they chose in the option box.  For example, if some select 3rd in the series of radio (3,000) button I want Field2 fill-in auto number 3 000.

    Is it possible to do an if / then statement to extract data from the radio button option?  I could do this in Excel but don't have a clue how to do here.  And I don't know about Java.  :-(

    Any help would be appreciated!

    Carol

    You can try this custom script that another user here suggested to me

    You click on properties > Calculate > custom calculation Script > change

    Then paste this in...

    var v = this.getField("Name_of_Radio_button_grouping").value;

    If (v == "1000") event.value = "1000";

    else if (v == "2000") event.value = "2000";

    else if (v == "3000") event.value = "3000";

    else if (v == "4000") event.value = "4000";

    else if (v == "5000") event.value = "5000";

    else if (v == "6000") event.value = "6000";

    else if (v == "7000") event.value = "7000".

    else if (v == "8000") event.value = "8000".

    else if (v == "9000") event.value = "9000".

    etc.

    else event.value = "";

  • Pulling data from the class on a MovieClip array

    I am trying to create this slideshow application that displays product information (Tennis rackets) issues of different categories. A great programmer advised me that OOP would be a way to go, however I'm having a difficulty with it.

    I created:

    A document class called CustomClass--> This class downloads all data from the server and pushing the content in the XML based on a category tables. These berries are public, there is also a funciton iterateArray that places the children information somewhere.

    I would like to have 3 different movie clips

    1 screen-> Welcome Message

    2nd screen-> first table

    3rd screen-> second table Dispalyed

    package {
         
         import flash.display.*;
         import fl.transitions.*;
         import fl.transitions.easing.*;
         import flash.net.*;
         import flash.events.*;
         import flash.text.*;
         import flash.text.AntiAliasType;
         import flash.utils.*;
         import bucket_right;
         import bucket_left;
         import firstScreen;
         import secondScreen;
         
         
         public class CustomClass extends MovieClip {
              
              
              [Embed(source="C:/WINDOWS/Fonts/Eurosti.ttf", fontFamily="Euro")]
              public  var EuroEmbedded:Class;
              
              
              //XML responsible variables 
              private var xmlLoader:URLLoader;
              private var xmlContainer:XML;
              private var xmlList:XMLList;
              
              //Array specific variables 
              public var rackUSA:Array;
              public var rackOther:Array;
              public var imagesArray:Array;
              
              //Position Variables 
              public var position:Number;
              
              //Movie Clip Related Data
              public var bucket:MovieClip;
              public var firstScreenShow:MovieClip;
              public var secondScreenShow:MovieClip;
              
              //Text Field Formatting
              private var brandnameTxt:TextFormat;
              private var detailsTxt:TextFormat;
              private var priceTxt:TextFormat;
              public  var euroEmbeddedFont:Font;
              private var fontNeeded:String;
              
              
              //Set up Timer Vars 
              private var applicationStart:Timer;
              private var delay:Number;
              private var repeat:Number;
              
              //Positioning Variable 
              private var positionBuckets:Boolean = true;
              
              //This is the constructor of the application 
              public function CustomClass() {
                   euroEmbeddedFont = new EuroEmbedded();
                   fontNeeded            = euroEmbeddedFont.fontName;
                   position         = 5;
                   rackUSA            = new Array();
                   rackOther            = new Array();
                   imagesArray       = new Array();
                   
                   delay                 = 2000;
                   repeat                = 1;
                   applicationStart = new Timer(delay, repeat);
                   LoadXML();
              }
              
              private function LoadXML() {
                   xmlLoader = new URLLoader();
                   xmlLoader.load(new URLRequest("http://localhost/xml/index.php"));
                   xmlLoader.addEventListener(Event.COMPLETE, populateInfo);
              }
              
              public function populateImages(imgname:String, imgurl:String):* {
                   var imageLoader:Loader = new Loader();
                   //imgname = imgname.split(".gif").join("");
                   //imageLoader.name = imgname;
                   //imagesArray.push(imageLoader);
                  imageLoader.load(new URLRequest(imgurl));
                   return imageLoader;
              }
              
              public function getArray(arrayName:Array) {
                   return arrayName;
              }
              /*public function startApplication() {
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }
              
              public function firstScreen(e:TimerEvent) {
                   removeChild(secondScreenShow);
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
                   firstScreenShow = new firstScreen();
                   addChild(firstScreenShow);
                   //firstScreenShow.iterateArray(rackUSA);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
              }
              
              public function secondScreen(e:TimerEvent) {
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
                   removeChild(firstScreenShow);
                   secondScreenShow = new secondScreen();
                   addChild(secondScreenShow);
                   //secondScreenShow.iterateArray(rackOther);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }*/
              
              public function setFontFormat() {
                   //Text Formatting for Brand Name Field
                   brandnameTxt = new TextFormat();
                   brandnameTxt.font = fontNeeded;
                   brandnameTxt.color = 0x006699;
                   brandnameTxt.size = 20;
                   brandnameTxt.bold = true;
                   //
                   
                   //Text Formatting for Country/Material
                   detailsTxt = new TextFormat();
                   detailsTxt.font = fontNeeded;
                   detailsTxt.color = 0x006699;
                   detailsTxt.size = 10;
                   detailsTxt.bold = false;
                   
                   //Text Formatting for Country/Material
                   priceTxt = new TextFormat();
                   priceTxt.font = fontNeeded;
                   priceTxt.color = 0x9DE36E;
                   priceTxt.size = 20;
                   priceTxt.bold = true;
              }
              
              public function tweenBucket(bucket:MovieClip) {
                        var bucketImgTrans = new TransitionManager(bucket);
                        bucketImgTrans.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
              }
              
              private function iterateArray(contentInfo:Array) {
                   this.setFontFormat();
                   
                   for (var c:uint = 0; c < contentInfo.length; c++) {
                             var brand:TextField   = new TextField();
                             var country:TextField = new TextField();
                             var made:TextField    = new TextField();
                             var cost:TextField    = new TextField();
                             var img:Loader;     
                             brand.embedFonts        = true;
                             
                             img            = contentInfo[c].picture;
                             brand.text   = contentInfo[c].brand;
                             country.text = contentInfo[c].country;
                             made.text    = contentInfo[c].made;
                             cost.text    = contentInfo[c].cost;
                             
                             if (positionBuckets) {
                             bucket       = new bucket_left();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 70;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = 45;
                             cost.y = -10;
                             img.x = -105;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.LEFT;
                           priceTxt.align         = TextFormatAlign.LEFT;
                             positionBuckets    = false; 
                             } else {
                             bucket       = new bucket_right();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 240;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = -110;
                             cost.y = -10;
                             img.x = 70;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.RIGHT;
                             positionBuckets    = true;      
                             }
                             brand.setTextFormat(brandnameTxt);
                             country.setTextFormat(detailsTxt);
                             made.setTextFormat(detailsTxt);
                             cost.setTextFormat(priceTxt);
                             //this.tweenBucket(bucket);
                             addChildAt(bucket, 0);
                             bucket.addChild(DisplayObject(img));
                             bucket.addChild(brand);
                             bucket.addChild(country);
                             bucket.addChild(made);
                             bucket.addChild(cost);
                             position += 70;
                   }
              }
              
              private function populateInfo(event:Event) {
                   
                   //Incoming XML Data
                   xmlContainer = new XML(event.target.data);
                   xmlList = xmlContainer.product;
                   //
                   
                   //Variables to hold the string
                   var brandTxt:String;
                   var country:String;
                   var material:String;
                   var price:String;
                   var image:String;
                   
                   for (var i:uint = 0; i < xmlList.length(); i++) {     
                   if (xmlList.country.text()[i] == "USA") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   rackUSA.name = brandTxt.toLowerCase();
                   var imgVar:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackUSA.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVar});
                   //addChild(DisplayObject(rackUSA[0].picture));
                   } else if (xmlList.country.text()[i] == "Other") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   var imgVarOther:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackOther.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVarOther});
                   }
                   }
                   //this.startApplication();
              }
              
              
              
              
              
         }
    }
    

    If I clip named firstScreen how to fill with data from the rackUSA of the table, using the presented functions iterateArray

    I tried in a movieClip

    CustomClass.iterateArray (rackUSA); but it does not work

    Any suggestions

    I want to clarify the use cases.

    1 load data into the document class

    2. display a welcome message

    3 allow users to navigate through the products.

    Q1: Do you mean by 'welcome message' a user interface that allows to start navigation?

    Q2: Products appears the same way. I mean, consider that product display will have a uniform provision?

    If the answer to Q2 is Yes, I would:

    1. create a class that features products. Call ProductDisplay

    2 transfer data (subset of XML related to a particular product - in your case, it may be an object in the position of the table) in an instance of ProductDisplay

    I would like you to consider the following.

    It is a good practice to do OBJECT oriented programming class as little as possible each. This means that a class must have a very focused functionality. For example, ProductClass you perform tasks related to laying on the presentation of the product. With this in mind, it is best to delegate, say, loading image to a separate category. Believe me, when you do – your life will be much easier if you do features as granular as possible even if sometimes it feels like an overdose.

    So here's the sketch of your classes. I wrote it just to illustrate the idea. I did not check the code during execution is definitely buggy.

    Read my comments below also.

    It is a class of product image that load the image:

    
    package
    {
         import flash.display.Loader;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.ProgressEvent;
         import flash.net.URLRequest;
    
         public class ProductImage extends Sprite
         {
              // image url
              private var _url:String;
              // loader
              private var _loader:Loader;
              public function ProductImage()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   _loader = new Loader();
                   _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
                   _loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
                   _loader.load(new URLRequest(url));
              }
    
              private function onProgress(e:ProgressEvent):void
              {
                   // display progress if needed
              }
    
              private function onLoad(e:Event):void
              {
                   _loader.contentLoaderInfo.removeEventListener(Event.COMPLETE);
                   _loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
                   addChild(_loader);
    
              }
    
              public function get url():String { return _url; }
    
              public function set url(value:String):void
              {
                   _url = value;
              }
    
         }
    
    }
    

    ProdustDisplay class. Note how the product class is instantiated

    
    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
    
         public class ProductDisplay extends Sprite
         {
              // hold the metadata
              private var _metaData:Object;
              // an object that holds the image
              private var _imageDisplay:ProductImage;
              public function ProductDisplay()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // only if metadat is set - build interface
                   if (metaData) {
                        build();
                   }
    
              }
              // build interface
              private function build():void {
                   // place prduct image
                   _imageDisplay = new ProductImage();
                   _imageDisplay.url = metaData.image;
                   addChild(_imageDisplay);
                   // do the rest - like description, etc.
              }
              // function that accepts product metadata
              public function set metaData(metaObject:Object):void {
                   _metaData = metaObject;
              }
              // returns metadata
              public function get metaData():Object {
                   return _metaData;
    
              }
    
         }
    
    }
    

    Now in your document class, you can set an unlimited number of instances of ProductDisplay (as slides) and manipulate them. Again, this is just a sketch. Actual implementation of features and code will be somewhat different:

    var productDisplay:ProductDisplay = new ProductDisplay();
    productDisplay.metaData = rackUSA[2];
    
    

    Note: Your code has several inconsistencies - we need to go through them at another time. For now just digest these ideas. I understand that this will involve a refactoring on your part, but once you are done with it - things will fall in place fast.

  • Help in mandatory query - pulling data from two tables and inserting a

    Hi all

    I need your help for the modification of the query to get the desired result.
    I have two tables A and b. using source Insert and select the command, I need to extract data from tables A and B, then insert and C.
    Data and table structures are available below.

    Table (Source Table)

    Status of payment $
    MUL DC 20
    ONLY DC 20
    ONLY 40 PA
    MUL NY 50

    Table B (Source Table)

    State of lang units
    E DC 10
    S DC 10
    NY E 5
    PA S 5

    Based on query, I need the values in table C as mentioned below.
    Table C (Table of Destination) (necessary output query must also be as below)

    The State value

    PA 8
    DC 1

    My query is

    INSERT INTO C(STATE,VALUE)
    SELECT A.STATE, SUM ($) /SUM (UNITS)
    OF A, B
    WHERE PAYMENT = "SINGLE".
    AND A.STATE = B.STATE
    GROUP OF A.STATE, B.STATE

    But the output I get is

    PA 8
    DC 2

    Essentially to DC, I should get 1, i.e., for payment only $ DC is 20 and divided by 20 DC must be 1.
    Let me know where I'm missing.

    Hello

    It will work you need to add units in the group by clause

    SELECT a.state, SUM (dollars) / units
    FROM a, (SELECT state, SUM (units) units
             FROM b
             GROUP BY state) sub
    WHERE payment = 'SINGLE' AND a.state = sub.state
    GROUP BY a.state, units;
    

    Concerning

  • How to paste some data from numbers to some placeholders in the Pages using AppleScript and Automator?

    Hello AppleScript and Automator Pros!

    Unique ID Elements Quantity Unit of measure Sum, $ Color Dark?
    1 Pencil 1 Agenda 90.50 P Yes
    2 Pen 150 Agenda 300.23 THERE NO.
    3 Pillow 2 Agenda 400.01 B NO.
    4 Toy 114 Agenda 500.30 R Yes
    5 Repair service N/A N/A 1.00 N/A NO.
    6 Phone 98 Agenda 1986.10 W NO.

    P = purple

    Y = yellow

    B = black

    R = red

    W = white

    It was an example of Document numbers


    Now the example of Document Pages

    [PH for Unique ID] - Ben got: [PH for element], [PH for quantity] [PH for unit of measure], [dark or not PH] [PH for color] for [PH for sum before the comma] $ [PH cents] c.

    When Ben had [PH for quantity] [dark or not PH] [PH for Color] [PH for item tiny first character and changeable if necessary end], he became happy

    Example 1: Allows you to take data from line with Unique ID 1 and that's what it takes to go:

    1 - Ben got: pencil, 1 point, violet dark 50 ° c for $ 90.

    When Ben had 1 Purple Pencil dark, he became happy

    Example 2: Now data row with Unique ID 3 and it is what to get:

    3 - Ben got: Pillow, 2 pieces, blue for $ 400 01b

    When Ben had 2 blue pillows he became happy

    Example 3: Now the data used to row with Unique ID 5 and this is what it takes to get:

    5 - Ben got: repair service, 1 service, for 1$ 00 c complete

    When Ben had 1 repair service complete, he became happy

    Here, I have to change given n/d of the table in numbers and replace quantity with 1 PH, PH for unit of measure with service (no point as in the previous examples) and the PH for color with plenty of example.

  • Build a relationship of Scripts to load data by using a load rule

    You can build a relationship of Scripts to load data using a rule charge and if so, what would this process

    Please notify

    The requirement is in reality a quest for the Holy Grail (instantaneous aggregation in the planning of the BSO)?  We could have a conversation down to level 1 "when there is 10 000' options without being noticed.

  • Pulling data from the SAP ERP system in ColdFusion

    Has anyone tried to extract data from the SAP ERP system in ColdFusion?
    Y at - it any documentation on how to do this?

    Any help and suggestions would be very appreciated.

    Thank you, Rob.

    You are right. I don't know Java and when I looked at JCo stuff, I got confused.
    Thnaks for recommend bTalk. I met with them soon.

  • Collection of data from more than an instrument via the same labVIEW program

    Hello

    I have a program whereby I collect data on a scale of and save the data in the text file. Now, I need to collect data of three identical scales and save the data. I wonder if it is possible to do so in the same program? I mean how to manage three ports and save three different text files?

    I enclose the current program. Communication with the scale series and I use VI:s. thanks in advance for the help = VISA)

    This is easily possible with a single program, and there are several ways to do so.  I recommend the following:

    1. Take data from these devices in a separate loop (this could be in a separate - VI, as well).  These loops should be state machines if you can start and stop the acquisitions in a clean way.  This assumes that the instruments are on separate ports.  If they are on the same port, you probably want to use the same loop.

    2. Write to the file in a single loop.  This, too, should be a state machine.

    3. Queues to send data from the acquisition of loops to the loop of file I/O.

    4. Use still another loop for your user interface.  It must contain a structure of the event.

    To do this, you will need to learn more about the State machines and producer/consumer architectures.  Start with the help of LabVIEW, then search these forums.  There are a multitude of implementations of State machines and producer/consumer architectures.  If you have the time, I highly recommend you learn and to use the classes in LabVIEW (requires LabVIEW 8.2 or later).  This will facilitate your work in the long term.

    Let us know if you encounter any problems...

  • LabVIEW is not able to extract data from a HP4194A and gives me the error code 1073807202.

    I'm trying to get a graph of the impedance of a capacitor of the HP4194A to my laptop and use one or GPIB-USB-HS connection. I downloaded the latest drivers and am using LabView 8.2. Initially I thought it was a connection problem because demand measurement and automation could find the HP4194A, but he has not answered the * IDN? query. However, the HP4194A responded to the ID of the request? which I found by looking at the user manual. What else should try to get the data I need?

    Thank you

    The HP4194A is an old instrument, and as such, it is not unusual for ancient instruments to does not implement does not the SCPI standard commands. Therefore, to have "ID?" instead of "* IDN? That said, what driver do you use? Is this? When you say that you aren't able to pull data, please be more descriptive. Are you an error? If so, what is it? What screws do you use? Do you use an example VI? If so, which? We are not mind readers, don't forget.

  • LKM to move data from one schema to another in the same DB

    Hello

    I am new to ODI. My question is simple:

    I created a mapping to move data from a table in Figure 1 to another table in Figure 2 (the two schemas in the same Oracle DB.

    What is the best LKM Oracle for performance to use in this case? Most of the LKMs using DB link... but is it really necessary that the two schemas are in the same DB?

    Ive used SQL knowledge SQL module, but I guess it's probably slower strategy.

    Thank you!

    Vitor Moreira

    Hello

    If two phyiscal patterns are on the same database, you want a Phyiscal server with two patterns of phyiscal under this server in your topology, this way ODI will recognize that you don't need a LKM (at all) and mapping will have to IKM / CKM only.

    If ODI is to ask a LKM, looks like the two schemas to belong to their own physical server in the topology browser? In this case, it is not optimal.

    Just make sure that your user has access to two objects in diagrams and you'll be fine.

    If you really want to go Oracle DB Oracle DB then DB link or Datapump for large volumes of data, JDBC/Agent (SQL for SQL) for smaller volumes.

  • Getting data from tables msql and e-mailing the result

    Here is some code that I'm eager to collect data from two tables msql and send by email to a user. (This is to remind the user of their user name and password in a weak security situation - that they have submitted their email address)

    I glued some elements of other pages together, hoping it will do what I want.

    At present, it fails with the message

    "You have an error in your SQL syntax. Check the manual for your version of the MySQL server for the right syntax to use near Test "in line 1", after posting $org as requested (as a test)

    I would be grateful if someone can debug this problem, or otherwise advise.

    <? php require_once('.. /.. / Connections/tormented3.php');? >
    <? PHP
    now, the recordset to email a link to the training
    $colname_rstSix = "1";
    If (isset($_GET['email'])) {}
    $colname_rstSix = (get_magic_quotes_gpc())? $_GET ['email']: addslashes($_GET['email']);
    }
    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstSix = sprintf ("SELECT ck_organisation FROM chk_sixmonth WHERE ck_email = ' %s", $colname_rstSix);
    $rstSix = mysql_query ($query_rstSix, $tormented3) or die (mysql_error ());
    $row_rstSix = mysql_fetch_assoc ($rstSix);
    $totalRows_rstSix = mysql_num_rows ($rstSix);
    Recordset to the end
    $org = $row_rstSix ["ck_organisation"];
    echo $org; temporary test. Yes, it sends a correct text to monitor

    now recordset to the Organization link to access details

    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstPword = sprintf ("SELECT username, passwords password organization FROM WHERE = ' %s", $org);
    $rstPword = mysql_query ($query_rstPword, $tormented3) or die (mysql_error ());
    $row_rstPword = mysql_fetch_assoc ($rstPword);
    $totalRows_rstPword = mysql_num_rows ($rstPword);

    Start with routine e-mail
    $start = "your information to update access the website of the mental health of Torbay.
    Your host username";// set up the e-mail header
    $username = $row_rstSix ["username"];
    $pword = $row_rstSix ["password"];
    $message. = '$start $username. Your password is $pword\n please update your entries. « ;
    If (mail ($email "Recall information Access",
    $message, "in: . ((" [email protected] \r\n")) { }
    header ('location:http://www.sample.org.uk "") ;// Redirect to the page if the email has been sent successfully
    "exit";
    } else {}
    $error == ' < style p = "color: red;" > an error has occurred, your email could not be sent. Please try again < /p > ';
    }

    ? >

    Thank you very much.

    I assumed that your first successful query because SELECT... ck_organisation your $org echo printed what you expected.

    Isn't the second query SELECT... Organization which is a failure? Have you tried the echo method or die in this query? Or is it the one that displays "the query is empty?

    Try changing the following code snippet and we'll see what happens. I've added a couple more conditions where you can send them to the form. I added also oblique (') around the domain names in the second query, just in case any of those are reserved words in MySQL (I don't get them, but they are available in the MySQL online documentation).

    mysql_select_db($database_tormented3, $tormented3);
    $query_rstSix = sprintf("SELECT ck_organisation FROM chk_sixmonth WHERE ck_email = '%s'", $colname_rstSix);
    $rstSix = mysql_query($query_rstSix, $tormented3) or die(mysql_error());
    $totalRows_rstSix = mysql_num_rows($rstSix);
    if (!$totalRows_rstSix) {
      // no record exists with email $colname_rstSix
      // Alert user and let them try again.
      exit;
    }
    $row_rstSix = mysql_fetch_assoc($rstSix);
    //end recordset
    $org = $row_rstSix['ck_organisation'];
    echo $org; //temporary test. Yes, it does send correct text to monitor
    
    //now recordset to link organisation to access details
    // mysql_select_db($database_tormented3, $tormented3); // not needed. Still selected from above
    $query_rstPword = sprintf("SELECT `organisation`, `username`, `password` FROM `passwords` WHERE `organisation` = '%s'", $org);
    echo "$query_rstPword
    "; $rstPword = mysql_query($query_rstPword, $tormented3) or die(mysql_error()); $totalRows_rstPword = mysql_num_rows($rstPword); if (!$totalRows_rstPword) { // no record in passwords with $org // Decide what you want to do in this situation. // exit; ??? } $row_rstPword = mysql_fetch_assoc($rstPword);

    --
    Mark A. Boyd
    Keep-on-Learnine :-)

  • Best way to move data from one page to another within the app

    Hi all as I started to write that and was way to complicated to explain in full without a novel.

    Brief description. I use the query string that begins in the parent (from href in JSON) window must then be moved in the iframe url when moving to other pages to avoid security as a page and iframe is conflicting http and https. and are not accessible... It seems that there must be a better way.

    So my question is what is the best way in a platform open to move data from one page to another?

    You do it this way, it's in the menu.json, but when you work within the iframe and if your loading pages in applications using vairable relative URLS cross they come through.
    Discovered only this framework using the browser and you can se the construction and scope of all URLS used.

    The apps are sandboxed you cannot access aything in the parent frame, this is a feature of derliberate if something you can not do.

    As I said, you have a few methods to your own data storage space.

Maybe you are looking for

  • How to merge and write analog inputs, and export data to a tdms file?

    I have a vi who writes analog inputs in tdms files. I also want to write the analog output signals, which are 2d table entries in the same PDM file with additional columns representing the analog output signals. How can I get this feature?

  • How take the sum of middle iteration last iteration?

    Hello! PLS, can anyone help, I have six variables and you want to take the sum of each of the variables separately from the middle of the iteration to the last iteration (i.e. iteration 6 iteration 12). Attached are the vi file and data entry.

  • Wrong Email address

    Outlook has hurt listed email address in the form of protection. How to fix this, so that I can receive a security code to the right address. I was unable to find a site that I can inform error here. Discussions were merged. Deleted duplicate.

  • Old laptop will not come to the top. To get the files and documents for the new laptop

    My laptop with Windows Vista will come is no longer. It is just sitting there waiting and waiting. I just got a new laptop with Windows 7. I can't all files and documents, etc. from the old laptop and put it on my new laptop? Can I do this using a US

  • error 0 x 80070057 Windows update

    I am running windows 7 64 bit.  I tried to run windows update 3 days ago.  There were about 30 updates, he found.  I chose to install them.  After 4 hours, it was still stuck at 0%.  I chose cancel and restarted.  I found it installed 1 update and di