ListField using the hash table
Hi guys, new here so please, be gentle.
I was wondering if there is way to a ListField (or something similar) but using a hash instead of a vector table. I searched through the forums without success. And if it is would it be possible to display the incredible list. (List in the hash table and sort by alphabetical order, via the keys)
The hash table structure K = String (name of player), V = object reader.
If this can be done using a hash table, is there a way to do this using a vector. So that I could search the data structure for a players name and return the object.
Sorry if it's confusing or vague. I'm not not used to describe my problems!
Thank you very much for the help.
You can also move forward and persist in the hash table, and then build an index using a few stores of SimpleSortingVector who keys in order.
There are a lot of options... you just need to decide which is best for you.
Tags: BlackBerry Developers
Similar Questions
-
PageContext.forwardimmediatly works not when the hash table is used.
Hello
I try to use as below:
HashMap hm = new HashMap (1);
HM.put ("conc_called", "Yes");
pageContext.forwardImmediately ("OA.jsp?page=/XXX/xxPG",
NULL,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
NULL,
GMC
true,
"N");
But I get an error message indicating that the method does not exist. Any suggestion would be appreciated.
Thank you
PKMake sure the hash table is of the type com.sun.java.util.collections.HashMap and not java.util.HashMap
-
Returns a copy of the hash table
I have problems by returning a copy of a hash that is normally stored in the persistent store table.
final class SyncCentres { private static Hashtable syncCentres; private static PersistentObject persist; private static final long ID=0xdfeab99e040a223aL; static{ persist=PersistentStore.getPersistentObject(ID); syncCentres=(Hashtable)persist.getContents(); synchronized(persist){ if(syncCentres==null){ syncCentres=new Hashtable(4); persist.setContents(syncCentres); persist.commit(); } } } static Hashtable getSyncCentres(){ return syncCentres; } } // Class
When I get the hash table in another class by using the static method.
Hashtable hash=SyncCentres.getSyncCentres();
It turns out that it is not a copy. Change the hash variable will edit the SyncCentres class as well. Is this normal? How can I get a copy of it?
Java, copy and pass the reference by value, not the object.
See
http://www.Yoda.arachsys.com/Java/passing.html
or
http://www.JavaWorld.com/JavaWorld/javaqa/2000-05/03-QA-0526-pass.html
If you want a true copy of the hash table you need to clone and each of its objects.
You can also copy all objects to a new hash table, but these are always references to the same objects as in the first hash table. -
HI guys,.
I have a script that takes a list of VM and collects various pieces of information on the
- Name, host name, CPU Num, Num disks, IP info, etc...
The script works fine, but I still need to load the data into Excel and manipulate manually until the data can be used with other scripts. I wonder if there is a way to eliminate this manual work?
Specifically, for each computer virtual, the script determines the number of hard drives and returns the following for each disk
- HDDx name
- HDDx data store
- Path of HDDx (file and hard in the data store name)
I can be left with dozens of lines for all virtual machines in the hash table, and each virtual computer might have multiple entries for each of the 3 items above.
E.g. HDD1, HDD2, HDD3 Datastore, DataStore DataStore...
What I want to do is take all the 'HDDx DataStore' entries in the hash table and return only the unique entries so that I can then turned off and get specific on these specific data stores information, number of virtual machines, the names of the machines virtual etc...
I tried to use wildcards, which of the statements, etc... I can't make it work.
Fill script I use is attached.
This is the closest that I just get this work but, it is still not add all the information from the data store in the hash table second $dsReport
In the attached script, I have highlighted the lines of $dsReport
$report = @)
$dsReport = @)
...
...
$hdd = 1
$Computer | Get-hard drive | {foreach}
Name of $GeneralProp.Add ("HDD$ ($hdd) ', $_.") Name)
$GeneralProp.Add ("HDD$ ($hdd) data store", $_. ") FileName.split("") [0]. TrimStart("["). TrimEnd("]"))
$GeneralProp.Add ("HDD$ ($hdd) path', $_.") FileName.split("") [1]. TrimStart("["). TrimEnd("]"))
Capacity of $GeneralProp.Add ("HDD$ ($hdd) ', $_.") CapacityGb)
$dsProp=@{Name = $_. FileName.split("") [0]. TrimStart("["). TrimEnd("]")}
$hdd ++
}...
...
$dsReport | SELECT name - Unique
Any help is appreciated
Thank you
Something like that?
Get - vm | {foreach}
$disks = @)
$_ | Get-hard drive | {foreach}
$dsname = $_. Filename.Split("") [0]. TrimStart("["). TrimEnd("]")
$disks += $_. Add-Member - MemberType NoteProperty - name DatastoreName - $dsname - PassThru of value
}
$disks | Group-object - property DatastoreName
}
-
Using the external table error
Hi all
This is the first time I use the external table for loading the data.
I did these steps
In the D:\sqlloade folder, I have my text file containing data example.txt
I ran these queries
CREATE OR REPLACE DIRECTORY ext_tab_data AS 'D:\sqlloader';
Directory created
CREATE TABLE fxops.t_ext ( t number ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_data ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY ',' MISSING FIELD VALUES ARE NULL ( t number ) ) LOCATION ('sample.txt') ) PARALLEL 5 REJECT LIMIT UNLIMITED;
create table
When I tried to create a view on that table, he throws an error
CREATE OR REPLACE VIEW fxops.t_view AS SELECT * FROM fxops.t_ext; SQL Error: ORA-06564: object EXT_TAB_DATA does not exist 06564. 00000 - "object %s does not exist" *Cause: The named object could not be found. Either it does not exist or you do not have permission to access it. *Action: Create the object or get permission to access it.
Sign in, and then run this:
Select HOST_NAME from v$ instance;
is this the same hostname that you are connected?
Kind regards
Harry
-
Need to dimension aggregated using the summary tables
Hello
I have two made tables workdetail and worksummary. Worksummary is grouped in time Sun and workdetail is at the level of day Timedim.
Now, I set up my business model with Timedim and secondary table work. (creates a hirerchy for time (year-month-day) Sun). Now I want to use the tables of worksummary, how can I include this in my business model. I know to create a new Source of logic and mentioning levels.
My important question is what do I have to create another physical table for time-months? or can I use same calendar dim physical to use with the summary fact tables?the answer to your question is YES, to use aggregated summary tables, we have grouped the dimensions. Other wise data will be redundant and return values incosistent.
In your case if you use the same table of Timedim-day level with summaries, data tables will be multiplied by 30 days due to the time-Sun monthkey will be repeated in several lines.
the simplest solution is to create Time_Dim table view, select separate year, month, monthkey. This view returns only unique year-month. Thus, each month will have only one line.
-> view to import in your physical layer and create a join with the fact summary table.
-> The table of months (which is the point of view) in the logic time_dim as another source, mention levels.
-> and include your table of facts in logical fact table and mention that the levels at months time SunIt will work. Let me know if I'm not clear. Also, we can expect further comments of experts.
-Madan
-
Table partitioned using the hash partition
I need to create the table using hash partition and need to specify the number of partitions (for example, 32)
1. How/where to specify the number of partitions? I checked under "partitioning" tab of the properties of the table, but "system partition" is disabled.
2. What is the difference between the hash by quantity vs Hash of the list of partitions and which should I use?Hello
To do this, you must set the Partition Type to HASH BY QUANTITY. Then, tab Tablespaces part of hash, you can set the quantity field on HashP to the number of partitions.
Ownership of the system partition is only enabled if the type of partitioning SYSTEM.
Hash partition list allows you to add entries in hash Partitions of the Table nsud Partition to set each individual partition.David
-
How can I publish the data to the hash table using regulator netui?
Could someone help me on how to display the data of the hash to netui in the controller.
There are altogether 18 survey questions (each question will have a list of surveyquestionanwer)
but I see only 14 issues of the investigation during the validation in the controller and also I see all the answers of the survey instead of the one that is selected on the jsp.
Here is my sample code.
Appreciate your help.setQuestionSurveyAnswers(Set<Entry<String, Collection<SurveyQuestionAnswer>>> surveyAnswers) Map<String, Collection<SurveyAnswer>> surveyQuestionAnswerList = new HashMap<String, Collection<SurveyAnswer>>(); surveyQuestionAnswerList contains <questionId, List<SurveyQuestionAnswer>> --------------------------------------------------------------------------------------------------------------- <netui-data:repeater dataSource="pageFlow.surveyForm.surveyAnswers"> <netui-data:repeaterItem> <netui:span value="${container.item.key}" /> <netui:radioButtonGroup dataSource="container.item.key" orientation="horizontal"> // is anything wrong here? <netui-data:repeater dataSource="container.item.value"> <netui-data:repeaterItem> <netui:radioButtonOption value="${container.item.answerText}"> <netui:label value="${container.item.answerText}" /> </netui:radioButtonOption> </netui-data:repeaterItem> </netui-data:repeater> </netui:radioButtonGroup> </netui-data:repeaterItem> </netui-data:repeater> --------------------------------------------------------------------------------------------------------------- data structure: --------------------------------------------------------------------------------------------------------------- questionId answerId answerText surveyQuestionLabel --------------------------------------------------------------------------------------------------------------- 1 1 Yes Do you want to take the survey? <SurveyQuestionAnswer> 1 2 No Do you want to take the survey? <SurveyQuestionAnswer> 2 1 Beginner Your expertese Level? <SurveyQuestionAnswer> 2 2 Expert Your expertese Level? <SurveyQuestionAnswer>
Thank youHello
It won't work, you bind the data of the hashmaps key, which does not work (you have a vo as the key)
I believe that your structure should be something like[QuestionAnswer] where QuestionAnswer has the label of the Question as well as a map of string, the string (AnswerId v/s AnswerText) (this may be an implicit method that traverses all objects and creates a map of AnswerId, AnswerText) and a single field of selectedAnswer.
Your outer loop will make a loop on QuestionAnswer and print the label of the Question and the inner loop will be the RadioButtonGroup, the data source must be the field of selectedAnswer (because you want to fill only) and the optionsDataSource is the AnswerId card, AnswerText
concerning
Deepak -
Defeated by tri-objet in the hash Table
Hi guys, I need someone who is smarter than me to help please, suck for 3 days now.
The Script below uses a CSV file as a database to pull total VMs in my vcenter in a bar chart, showing the trend upward. . My boss wants it as soon as possible.
I can not however the $HT variable to sort by date (sorting and tri-objet doesn't seem to work, sort of NAME or WEEK)
Need help please, I'm stumped.
Note, tips cut off when I pasted it, like}'s and impossible.
# Created by ELMO
Add-pssnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue
$Date = Get-Date -Format yyyy/MM/dd
$VCRUN = ' Ma Blanked to vCenter '
$Report = @()
$USER = "Ma Blanked user"
$PWD = "Ma Blanked on pwd"
Write-Host ' Connection to $VCRUN"" "".
VIserver disconnect -Confirm:$false
Se connect-VIServer -Server $VCRUN -User $USER -Password $PWD -wa 0
$VMsON = Get-VM | Where-Object {$_. PowerState -eq "PoweredOn"}
$VMsTotal = $VMsON. County
$Row = "" | Select Week, VMsTotal
$Row . Week = $Date
$Row . VMsTotal = $VMsTotal
$Report += $Row
$ReportView = $Report | Export-Csv -Path C:\PS\Output\VMTrendDB.csv -Append -NoTypeInformation #-Append the data at the bottom of the existing file
$MyData = Import-Csv C:\PS\Output\VMTrendDB.csv | Select-Object week ,VMsTotal
$HT = @{}
foreach ($Data in $MyData) {
$HT. Add($Data. Week , $Data . VMsTotal)
}
$HT = $HT | Tri # read on the Technet site as tri-objet does not change the actual table, but only the output. Thus uses only sort. $HT = HT Triedd | Sort = Name object AND object week type, they do not change my picture on the order of dates
Function Créer-Chart() {
Param(
[String] $ChartType ,
[String]$ChartTitle,
[String] $FileName ,
[,String]$XAxisName,
[String] $YAxisName ,
[Int]$ChartWidth,
[Int]$ChartHeight,
[HashTable]$DataHashTable
[Sub] [Reflection.Assembly]:LoadWithPartialName ("System.Windows.Forms"( )
[Sub] [Reflection.Assembly]:LoadWithPartialName ('System.Windows.Forms.DataVisualization'( )
#Create our graphic object
$Chart = new-object System.Windows.Forms.DataVisualization.Charting.Chart
$Chart. Width = $ChartWidth
$Chart. Height = $ChartHeight
$Chart. Left = 10
$Chart. Top = 10
#Create a chartarea to profit and add this to the table
$ChartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea
$Chart. ChartAreas . Add ($ChartArea)
[void]$Chart. Series . Add("Data")
$Chart. ChartAreas [0]. AxisX . Interval of = '1' #Set to 1 (default is auto) and allows all the values of the X axis appears correctly
$Chart. ChartAreas [0]. AxisX . IsLabelAutoFit = $false;
$Chart. ChartAreas [0]. AxisX . LabelStyle . Angle = "-45"
#Add real data to our table
$Chart. Series ["Data"]. Points . DataBindXY ($DataHashTable. ) Key , $DataHashTable. Values)
if (($ChartType -eq "Pie") -or ($ChartType -eq "pie")) {
$ChartArea. AxisX . Title = $XAxisName
$ChartArea. AxisY . Title = $YAxisName
$Chart. Series ["Data"]. ChartType = [System.Windows.Forms.DataVisualization.Charting.SeriesChartType]:Pie
$Chart. Series ['Data'] ['PieLabelStyle'] = "Outside"
$Chart. Series [« Data »] [« PieLineColor »] = "Black"
$Chart. Series ['Data'] ['PieDrawingStyle'] = "Concave"
($Chart. Series ["Data"]. Points . FindMaxByValue()) ["Exploded"] = $true
$Chart. Series ["Data"]. Label = ' #VALX = #VALY\n ' # make a X & Y Label of the data in the (useful for Pie chart) plot area (display the axis labels, use: Y = # ControlChars.LF = #VALX)
elseif (($ChartType -eq "Bar") -or ($ChartType -eq "bar")) {
#$Chart.Series ["Data"]. Sort ([System.Windows.Forms.DataVisualization.Charting.PointSortOrder]: descendant, "Y")
$ChartArea. AxisX . Title = $XAxisName
$ChartArea. AxisY . Title = $YAxisName
# Find point with max/min values and change color
$maxValuePoint = $Chart. Series ["Data"]. Points . FindMaxByValue()
$maxValuePoint. Color = [System.Drawing.Color]:Red
$minValuePoint = $Chart. Series ["Data"]. Points . FindMinByValue()
$minValuePoint. Color = [System.Drawing.Color]:Green
# make the bars in the 3d cylinders
$Chart. Series [« Data »] [« DrawingStyle »] = "Cylinder"
$Chart. Series ["Data"]. Label = '#VALY' # Label Y to the data in the plot (useful for the diagram bar) area
else {
Write-Host "no Chart Type has been defined. Try again and enter Pie or Bar for the ChartType parameter. The table will be created in the form of standard bar graphic chart for now. " -ForegroundColor Cyan
#Set the title of the chart for the date and time
$Title = new System.Windows.Forms.DataVisualization.Charting.Title
$Chart. Titles . Add($Title)
$Chart. Titles [0]. Text = $ChartTitle
Graphic to a file #Save
$FullPath = ($FileName + ".png")
$Chart. SaveImage ($FullPath 'png'( )
Write-Host ' saved chart in $FullPath"" " -ForegroundColor Green .
back $FullPath
Create Chart -ChartType bar ChartTitle - "machines virtual VMware in DC1" -FileName C:\inetpub\ELMO\Graphic\VMsTrendChart -XAxisName 'Date' -YAxisName 'number of VMs' -ChartWidth 800 -ChartHeight 800 -DataHashTable $HT
All by setting the variable $HT, you define it as a Table of hash, sort or Sort-Object does not work on hash Tables, they work on arrays. Your definition is
$HT = @ {}
Use $HT = @)
Instead, which will create a table and you would be able to define objects and then use the Sort-Object there. With Hash Tables, since they hold any objects you can not sort using Sort-Object.
-
Can not use the hash within forms (tips) function
Hello Guru,
Oracle 10.2.0.4.0 on Linux ES4 with a forms 6i application.
We have this simple hash function that I use as a program unit on a user form in forms 6i.
It hashes passwords using this function;
create or replace function md5 (value varchar) return varchar2 is
v_input varchar2 (2000): = value;
hexkey varchar2 (32): = null;
Start
hexkey: = rawtohex (dbms_obfuscation_toolkit.md5 (input = > utl_raw.cast_to_raw (v_input)));
return of nvl (hexkey, '< null >');
end;
/
I want to use it on a front Insert and before update trigger within forms. When I have the use of the md5 function code it gives me an error something on air of "cannot use this function in a sql statement" for example, that I expect to use it as follows:
insert into users (username, password) values (: user.username, md5(:user.password));))
and the same would go for the update.
I know that I can pull this off the form code and create an insert or update trigger after and call that the md5 function here, but I like to keep the code of hash in the user form - I already have 4 triggers in database on the table and do not want to create more.
Any advice would be great... :-)Just a small chance: try to call the function by using the names of block and item OTHER than: user, user name, and password.
All or part of them are reserved words, and maybe that's the problem.
If not, why not just call the function in the form to define a declared value of pl/sql, and then use this value in the insert and update statements.
-
How to validate totall character in a file using the extrnal table
Hi all
I have an external as table below
CREATE TABLE 'WE_INT '. "" XTB_INVADJ_FROM_POS ".
("TRANSACTIONDATE" VARCHAR2 (14 BYTE),
VARCHAR2 (2 BYTE) "LOCATION_TYPE."
VARCHAR2 (4 BYTE) "LOCATION_VALUE."
VARCHAR2 (3 BYTE) "ITEM_TYPE."
VARCHAR2 (13 BYTE) "ITEM_VALUE."
VARCHAR2 (5 BYTE) "UPC_SUPPLEMENT."
VARCHAR2 (2 BYTE) "INVENTORY_STATUS."
VARCHAR2 (2 BYTE) "ADJUSTMENT_REASON."
VARCHAR2 (1 BYTE) "ADJUSTMENT_SIGN."
"SET AMOUNT" VARCHAR2 (8 BYTE).
VARCHAR2 (4 BYTE) "ADJ_QTY_DECIMAL_VALUE".
)
EXTERNAL ORGANIZATION
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY 'LOC_SOURCE_POS2RMS_INVADJ '.
ACCESS SETTINGS
(RECORDS DELIMITED BY NEWLINE
CHARACTERSET WE8MSWIN1252
STRING SIZES ARE IN BYTES
WHEN LOAD)
((1:5) = "TDETL")
)
BADFILE "XTB_INVADJ_FROM_POS.bad."
DISCARDFILE 'XTB_INVADJ_FROM_POS.dis '.
LOGFILE "XTB_INVADJ_FROM_POS.log".
FIELDS
LTRIM
(
"TRANSACTIONDATE" POSITION (30:43) DATE,
"LOCATION_TYPE" POSITION (44:45) TANK,
"LOCATION_VALUE" POSITION (46:49) TANK,
"ITEM_TYPE" POSITION (50:52) TANK,
"ITEM_VALUE" POSITION (53:65) TANK,
"UPC_SUPPLEMENT" POSITION (66:70) TANK,
"INVENTORY_STATUS" POSITION (71:72) TANK,
"ADJUSTMENT_REASON" POSITION (73:74) TANK,
"ADJUSTMENT_SIGN" POSITION (75) TANK,
"SET AMOUNT" POSITION (76:83) TANK,.
CHAR POSITION (84:87) "ADJ_QTY_DECIMAL_VALUE".
)
)
LOCATION
("inv.txt"
)
)
REJECT LIMIT UNLIMITED;
If you see my conetent file that it will be as below.
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-000000400000
I want to validate the chracters total if this line is to have more or less of 87 87 he must raise the error.
You can use a column in the external table that contains all characters and a view that selects in the outer table, limiting the lines based on the length of the column that contains all characters, such as shown below. You can create a separate view for those! = 87 if you want a list of releases.
Scott@orcl12c > c:\my_oracle_files\inv.txt TYPE of HOST
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000040086
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-000000400087
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-0000004000088
Scott@orcl12c > CREATE or REPLACE DIRECTORY LOC_SOURCE_POS2RMS_INVADJ AS 'c:\my_oracle_files '.
2.
Created directory.
Scott@orcl12c > external_table CREATE TABLE
2 ("TRANSACTIONDATE" VARCHAR2 (14 BYTE),
VARCHAR2 (2 BYTE) 3 'LOCATION_TYPE. "
VARCHAR2 (4 BYTE) 4 "LOCATION_VALUE."
VARCHAR2 (3 BYTE) 5 'ITEM_TYPE. "
VARCHAR2 (13 BYTE) 6 "ITEM_VALUE."
VARCHAR2 (5 BYTE) 7 "UPC_SUPPLEMENT."
VARCHAR2 (2 BYTE) 8 "INVENTORY_STATUS."
VARCHAR2 (2 BYTE) 9 "ADJUSTMENT_REASON."
10 'ADJUSTMENT_SIGN' VARCHAR2 (1 BYTE),
11 "SET AMOUNT" VARCHAR2 (8 BYTE).
VARCHAR2 (4 BYTE) 12 "ADJ_QTY_DECIMAL_VALUE."
13 total_characters VARCHAR2 (255)
14)
15 EXTERNAL ORGANIZATION
16 (TYPE ORACLE_LOADER
17 DEFAULT DIRECTORY 'LOC_SOURCE_POS2RMS_INVADJ '.
18 ACCESS SETTINGS
19 (RECORDS DELIMITED BY NEWLINE
CHARACTERSET 20 WE8MSWIN1252
21 STRING SIZES ARE IN BYTES
22 LOAD WHEN)
23 ((1:5) = "TDETL")
24)
25 BADFILE "XTB_INVADJ_FROM_POS.bad."
26 DISCARDFILE 'XTB_INVADJ_FROM_POS.dis '.
27 LOGFILE "XTB_INVADJ_FROM_POS.log".
28 FIELDS
LTRIM 29
30 (
31 "TRANSACTIONDATE" POSITION (30:43) DATE,
32 'LOCATION_TYPE"POSITION (44:45) TANK,
33 "LOCATION_VALUE" POSITION (46:49) TANK,
34 'ITEM_TYPE"POSITION (50:52) TANK,
35 'ITEM_VALUE' POSITION (53:65) TANK,
36 "UPC_SUPPLEMENT" POSITION (66:70) TANK,
37 "INVENTORY_STATUS" POSITION (71:72) TANK,
38 "ADJUSTMENT_REASON" POSITION (73:74) TANK,
39 'ADJUSTMENT_SIGN' POSITION (75) TANK,
40 "SET AMOUNT" POSITION (76:83) TANK,.
41 'ADJ_QTY_DECIMAL_VALUE' POSITION (84:87) TANK,
42 total_characters POSITION(1:255) TANK
43 )
44 )
LOCATION 45
46 ("inv.txt"
47 )
48)
RELEASE 49 UNLIMITED LIMIT
50.
Table created.
Scott@orcl12c > SELECT * from external_table
2.
TRANSACTIONDAT LO LOCA ITE ITEM_VALUE UPC_S IN AD AN ADJ_ ADJUSTME
-------------- -- ---- --- ------------- ----- -- -- - -------- ----
TOTAL_CHARACTERS
--------------------------------------------------------------------------------
20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 086
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000
040086
20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 0087
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000
0400087
20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 0008
TDETL00000000020000000000000120100127181611ST6009SKU75001056 0023-00000
04000088
3 selected lines.
Scott@orcl12c > external_table FROM SELECT LENGTH (total_characters)
2.
LENGTH (TOTAL_CHARACTERS)
------------------------
86
87
88
3 selected lines.
Scott@orcl12c > xtb_invadj_from_pos VIEW to CREATE or REPLACE AS
2. SELECT "TRANSACTIONDATE"
3 "LOCATION_TYPE."
4 'LOCATION_VALUE. "
5 "ITEM_TYPE."
6 "ITEM_VALUE."
7 "UPC_SUPPLEMENT"
8 "INVENTORY_STATUS"
9 "ADJUSTMENT_REASON."
10 "ADJUSTMENT_SIGN."
11 "QUANTITY ADJUSTMENT."
12 'ADJ_QTY_DECIMAL_VALUE '.
13 FROM external_table
14 WHERE the LENGTH (total_characters) = 87
15.
Created view.
Scott@orcl12c > SELECT * FROM xtb_invadj_from_pos
2.
TRANSACTIONDAT LO LOCA ITE ITEM_VALUE UPC_S IN AD AN ADJ_ ADJUSTME
-------------- -- ---- --- ------------- ----- -- -- - -------- ----
20100127181611 ST 6009 SKU 75001056 00 23 - 00000040 0087
1 selected line.
-
Use the same table queue send two different messages?
Hello
We have a reconciliation and an outgoing queue in our database!
Now, we need to create another message content to send to IBM MQ series, so it's just an outgoing messages (no incoming message!)
To the exsisting two queues, we have the gateway messages in place!
I was wondering if I can use the same outgoing queue table and infrastructure Message gateway to send another message charge (contect) to the IBM MQ.
Don't you think it's possible?
More info made me know!
Thanks a lot for your help!
Hello Louis,.
first of all I didn't detect something strange or even incorrect - perfect!
Your questions:
> 1. have I defind is correct? "multiple_consumers => TRUE);"
Yes, that's correct. We must define this order to use MGW.
> 2. I failed: gv_mq_inbound_log_queue: = 'ORACLE.002 '; part because I have not all incoming messages to oracle, I just sent messages in my case! > Is this correct?
Yes, that's also OK. Since you're carrying data from AQ to MQ in an outgoing queue. Incoming queue would be
the other way around. You have configured your MQ as a remote queue (sys.mgw_property ('MQ_openOptions', 16')).
You wishes to clarify this yet once with your MQ management group if this is correct. You may not know at this stage.
The alternative would be a local queue (value = 2066).
You don't show the part for the queue. This should be something like:
BEGIN
v_message_text: = p_message_text. GETCLOBVAL(). -using the XMLTYPE as payload type
v_text_body: = SYS. MGW_TEXT_VALUE_T (NULL, v_message_text);
v_payload: = SYS. MGW_BASIC_MSG_T (v_header, v_text_body, NULL);
DBMS_AQ. ENQUEUE (queue_name-online p_queue_name,
enqueue_options-online enqueue_options,
message_properties-online message_properties,
payload-online v_payload,
-Online v_msgid msgid);
> 3. The last of them, do you think I'll reach my goal with all these codes? Is that what you think may be missing or... ?
Yes, you will reach your goal using this code. Try it and tell me what happened.
Kind regards
WoG
-
Dimension to build using the SQL table and process to populate the SQL table
I have a dimension in a cube that is manually* built by one of our power users. Now, I have to get all the information of members of this dimension in a SQL table (example: with columns... Level0, level0property, level1, level1property etc...) to use this table in the STUDIO for the responsibility of the Member.
Is there any easy process to do this? Currently I am building each line manually in the SQL table and there are 1100 + members in that manually built dimension. Please advice.Look at the outline of applied olap Extractor is a free utility
-
Issue using the ENGINE table MEMORY SUNOPSIS (high priority)
Hi gurus,
It is to launch an operator, like any error by using the SUNOPSIS MEMORY ENGINE to generate a .csv file using the database as a source table.
ODI-1228: SrcSet0 (load) task fails on the target connection SUNOPSIS ENGINE table SUNOPSIS MEMORY ENGINE.
Caused by: java.sql.SQLException: unknown token
(LKM used: LKM Sql to Sql.)
IKM used: IKM Sql to add files.)
can you please help me about this ASAP so that it became a show-stopper for me to go further.
Any help will be greatly appreciated.
Thank you very much
Pavan
Published by: Pavan. on July 11, 2012 10:22Hi all
The issue has been resolved successfully.
The solution is
We need to change the E$ _, I have$ _, J$ _,... E_, I_ , J_... ((c'est à dire, enlever le symbole '$')) in the PHYSICAL SCHEMA of ENGINE table SUNOPSIS MEMORY according to the information provided below.When interfaces running and using an XML schema or file complex as the transit area, the 'Unknown token' error. This error is caused by the HSQL (2.0) updated version. This new version of HSQL requires that the names of tables that contains a dollar sign ($) are enclosed in quotes. Temporary tables (loading, integration, etc.) that are created by the knowledge Modules do not respect this requirement on the technologies of complex and HSQL records.
To work around the problem, change the physical schema definitions to remove the dollar symbol ($) of all paintings of prefixes work. Scenarios must be regenerated with these new settings.
It has worked well for me.
Thank you
Pounet -
problem in the form of master-detail when you use the ADF table for detail
Hello
jdev version - 11.1.2.1.0
I create master shape detail using datacontrol drag as ADF master shape secondary Table.
Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.
and other show line that the previous record data based on the master.
problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.
Thanks in advanceHello
If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines
Frank
Maybe you are looking for
-
Messages on too many appliances
We have two new iPad PRO. Also 6 2 s iPhone. When send us a message or a message on our iphones - messages appear on all 4 devices. We talked to a hotline. They told us to set up FOUR different Apple ID accounts. Problem with this: 1. the indic
-
getting Skype logs...
Hello I got an old Skype account with my friends (I have not used for a few years) and now I need to recover from old account as chat logs, phone call logs and any other activity that I did on this old Skype account. So, how can I retrieve all newspa
-
Satellite L500 - 19 X - Red Cross on WLAN icon
Anyone know why I always a red cross on the icon of the taskbar wireless although my wireless connection is well? I have a Satellite L500 - 19 X.
-
USB not recognized - even when there is no device at all (Windows 7, Pavilion dv7)
For a few days now, I get the message "USB device not recognized: one of the USB devices attached to this computer is not working properly." The device has not been recognised "." He keeps popping up in my right corner below, every 5 seconds if I don
-
My dell system which is windows vista 32 bits just all of a sudden quit makes no noise after a computer reboot. I did pretty much everything you please help me?