SQL Store Routes of Hiking
Dear All
Thank you for your attention.
I am writing a hiking guide system that helps user to find out if they go wrong path.
I need to build a sytem that indicate the routes of hiking.
The hiking rules will be set by the chairman using an interface, so I need to store the rules in database.
A previous
discussion for using linked list to store the hiking routes
However, I underestimated the situations that may happen.
For example, I got the following rules come together
a) Multiple Possible Checkpoints
A > B or A > C (After checkpoint A, you can go to either B or C)
b) Skip CheckPoint
D > (E) > F or D > F (checkpoint E can be skipped)
c) Repeated Checkpoints
G > H > I > G > H > I > ... (If the action in checkpoint I is not passed, then you need to go back to checkpoint G again)
d) Group Optional Checkpoints
J > { K / L / M} > O (After checkpoint J, you can either go to K or L or M which is in the same group, let say checkpoints K, L and M are belongs to 'Water Area')
I need to let the chairman to define 'Water area' = { K / L / M }
and the the rules J > 'Water area' > O
My Search
I can think of using linked list to handle the above situations, but it is really complicated
e.g. to store the following rule P > Q / R / S > (T) > U / V > W > X > (P > ... W)
I need build many records
P > Q, P > R, P > S, P > Q > T, P > R > T, P > S > T, Q > T > U, ....
and it seems difficult to query and it is not a good database structure, anyone got ideas or experience on storing route like data? Any suggesstion? Many thanks
Best Regards
Ivan
Hi Ivan,
You can design the table like this. Simply put, the table contains 2 columns -
From, To
for a) Multiple Possible Checkpoints ruleS like A > B, A > C, there'll be 2 records
A > B
A > C
for b) Skip CheckPoint rules like D > (E) > F or D > F, there'll be 3 records
D > E
E > F
D > F
for c) Repeated Checkpoints rules like G > H > I > G > H > I > ..., we can break I down to 2 virtual checkpoints - I-success, I-fail, then we can have following records
G > H
H > I-success
H > I-fail
I-fail > G
for d) Group Optional Checkpoints like J > {K / L / M} > O, the records will be like
J > K
J > L
J > M
K > O
L > O
M > O
It doesn't require too many records. say for example, you have N checkpoints, the total number of records will be at most at the order of N^2 (in the extreme case where each pair of checkpoints are connected)
Hope this helps.
Ying
Thanks Ying
I am using that structure to build my system~
Best Regards
Ivan
Similar Messages
-
Pass parameters to sql store proc?
Is it possible to pass parameters from Crystal Report to sql store proc? I know it will prompt for paramters if the report is built based on a parameterized store proc. I am NOT talking about these parameters. I still want user to be able to select parameter values from dropdowns and use them as the procedure parameters.
Reason for my question is I don't want the store proc to create a table having all records then crystal makes report by filtering. The all-record table could grow huge very quickly as more data is put in.
Thank you very much.Hi Peter
Follow these steps:
A. Following steps applies to the main procedure:
1. Create a main report which accepts the same fields as you want to pass to the stored procedure. (Note that this main report is not based off the procedure that you want to execute. Just get the data that you want to pass to the procedure. We will call the procedure in the subreport.)
2. Now create the no. of dynamic parameters that you want your user to choose the data from in the main report. (Lets assume that the user will select a single value.)
B. Following section applies to the subreport:
1. Add a subreport to the main report. This subreport will be based off your procedure. This will automatically add up the stored procedure parameters to the subreport.
2. Take care that in the procedure you define the datatype of the parameters same as the field's data type that you want to pass to the procedure. This will show up your stored procedure parameters while subreport linking.
3. Now link the main report to the subreport with each parameter. Uncheck the "Select data based on" dialog box while linking each parameter.
Hope this post solves your problem. i am sorry for sounding descriptive.
Regards
Nikhil Sabnis -
Deploy EAR file to OC4J from PL/SQL Store Procedure
Hi
Can you deploy an EAR File from PL/SQL Store Procedure?
are there any API'S to achieve that?
Thanks.Customer has an IAS 10.1.3 Environment with multiple OC4J's for different projects.
We would like to allow each Project Team to be able to perform deployment on their own.
Problem is, that we want to be able to control which OC4J Container each project team can deploy to and restrict them from creating into other containers.
Although IAS 10.1.3 does allow you to define different users and groups, it doesnt allow you to restrict a user/group into one specific OC4J.
This is a big problem for customer and in the quest of searching some Creative Solutions, we wanted to try and create a simple Web UI (i.e, in APEX) that will allow customer to
upload new EAR (or WAR) file and it will deploy it to their container automatically.
to achieve this, we need to find (easy) way to deploy files from PL/SQL.
we can always use external pl/sql procedure that run a Shell Script which does this,
but customer is searching for a more "direct" way to do this.
any suggestions on this issue? -
create table #chartData(
ChgText [varchar](500) NOT NULL,
ChgCount [int] NULL,
[Sort] [int] NOT NULL,
[PartcTot] [int] NULL,
PercentageOfTotal decimal(6,3)
declare @partcTot int;
declare @SQLString nvarchar(4000), @ParamDefinition nvarchar(500);
declare @NewLine char(2)
select @partcTot = [frdmrpt].[fn_pha_total_participants](default);
set @NewLine=char(13)+char(10)
set @SQLString =
N'insert into #chartData (ChgText,ChgCount,Sort,PartcTot,PercentageOfTotal)' + @NewLine
set @SQLString = @SQLString +
N'select t.ChgText, c.TypeCount, t.Sort, ' + cast(@partcTot as nvarchar) + N' as PartcTot, (frdmrpt.fn_pha_percent(c.TypeCount,'
set @SQLString = @SQLString +
cast(@partcTot as nvarchar) + N')/100.0) as PercentageOfTotal' + @NewLine
set @SQLString = @SQLString +
N'from [frdmrpt].[wt_rpt_pha_pw_Rdy2ChgLevels] t inner join (' + @NewLine
set @SQLString = @SQLString +
N' select d.' + @HRADetail_Column + N' as ChgType, COUNT(*) as TypeCount' + @NewLine
set @SQLString = @SQLString +
N' from [frdmrpt].[wt_rpt_pha_pw_Member] m join [frdmrpt].[wt_rpt_pha_pw_HRADetail2] d on d.UserID = m.UserID' + @NewLine
set @SQLString = @SQLString +
N' group by d.' + @HRADetail_Column + @NewLine
set @SQLString = @SQLString +
N') c on t.ChgType = lower(c.ChgType) order by t.Sort' + @NewLine
--print @SQLString;
exec sp_executesql @SQLString;
select ChgText,ChgCount,Sort,PartcTot,PercentageOfTotal from #chartData
end
GO
Can someone explain the code to me using comment especially what is going on in the
set @SQLString =-- @partcTot value will be computed by function - [fn_pha_total_participants]
SELECT @partcTot = [frdmrpt].[fn_pha_total_participants](DEFAULT);
--Below statments will form a SQL INSERT statement into @SQLString
-- @NewLine variable will act as new line/pressing Enter key. That is why @NewLine is used at the end of line in below statements
SET @NewLine = CHAR(13) + CHAR(10)
-- Below will form INSERT INTO Table(<<ColumnList>>) statement
SET @SQLString = N'insert into #chartData (ChgText,ChgCount,Sort,PartcTot,PercentageOfTotal)' + @NewLine
-- PercentageOfTotal column is calculated here
SET @SQLString = @SQLString + N'select t.ChgText, c.TypeCount, t.Sort, ' + cast(@partcTot AS NVARCHAR) + N' as PartcTot, (frdmrpt.fn_pha_percent(c.TypeCount,'
SET @SQLString = @SQLString + cast(@partcTot AS NVARCHAR) + N')/100.0) as PercentageOfTotal' + @NewLine
-- wt_rpt_pha_pw_Rdy2ChgLevels table has inner join with table - (wt_rpt_pha_pw_Member which has self join again)
SET @SQLString = @SQLString + N'from [frdmrpt].[wt_rpt_pha_pw_Rdy2ChgLevels] t inner join (' + @NewLine
SET @SQLString = @SQLString + N' select d.' + @HRADetail_Column + N' as ChgType, COUNT(*) as TypeCount' + @NewLine
SET @SQLString = @SQLString + N' from [frdmrpt].[wt_rpt_pha_pw_Member] m join [frdmrpt].[wt_rpt_pha_pw_Member] d on d.UserID = m.UserID' + @NewLine
SET @SQLString = @SQLString + N' group by d.' + @HRADetail_Column + @NewLine
SET @SQLString = @SQLString + N') c on t.ChgType = lower(c.ChgType) order by t.Sort' + @NewLine
-- Uncomment below print statement to see what is your final SQL statement formed
-- print @SQLString;
-- Above SQLString is executed and data is inserted into #chartData
EXEC sp_executesql @SQLString;
-- At the end your SP selects the data from #chartData
SELECT ChgText
, ChgCount
, Sort
, PartcTot
, PercentageOfTotal
FROM #chartData
GO
-- You also need to declare @HRADetail_Column variable
-Vaibhav Chaudhari -
Access Subform - Can the Subforms Source Object be defined by an SQL SP result set?
Hi Guys,
I can't clearly answer this question with a yes or no.
I have an Access Sub Form that I am populating with a record set from a Store Procedure. Fairly early on I discovered that for this to work correctly the Source Object for the Sub Form Control must be set first, and most examples (including a working version
of my own) achieve this by defining an Access Query and setting the Source Object to this.
What I would really like to do is define the Source Object using the results of a SQL Store Procedure using ONLY code within VBA.
Now before anyone starts providing alternatives "why don't you just..." I'm noting now that I have a semi complex solution that makes most non-VBA based approaches ineffective. While it does work at present with an Access Query I'm needing
to make the result set more dynamic meaning in future I will not know how many columns will be returned or the name of them, only the SP will have this information.
Thanks in advance!Well after much trial and error I've got something which does what I want, although I'm not thrilled that I couldn't do this via my existing ADODB connections, in any case example provided below;
Dim db As DAO.Database
Dim qdf As New DAO.QueryDef
Set db = CurrentDb()
'qryMyTest refers to a dummy Access query (non pass through).
With db.QueryDefs("qryMyTest")
.Connect = CurrentDb.TableDefs("tblSomeTestSQLTable").Connect
.SQL = "exec sp_MyTestSP"
Me.subfrmTest1.SourceObject = "Query.qryMyTest"
End With
Set qdf = Nothing
I've also marked your response Alphonse as an answer as it lead me onto the right path. -
Bi for a realtime scenario with SQL Server
Hi ,
i need to create a dashboard to extract data in realtime mode that means an automatic refresh of data each 1 or 2 minutes.
The dashboard must show data that are the result of the execution of SQL store Procedure in MS SQL Server 2008.
We have BI 4.1 platform SP2.
Thanks in advance for your suggestions.
Best Regards.
AndreaHi Andrea,
Create universe on top of your SQL server DB and create reports on tops of it.
Later you can use Live office / QAAWS/BIWS to fetch the Data to xcelsius dashboard.
there are few settings in Dashbaord designer which will refresh the dashboard on the refresh every option.
PF the below screenshot. -
Wrong Date format in SQL Server
Hello All,
I have an asp page with a hidden field that holds
<%=Date()%>. Because the
Session.LCID is set to UK this value today would be
12/03/2007 (UK format).
When this hidden field is fed into an INSERT Stored Procedure
in SQL Server
in my testing environment, the date format that is inserted
into the
database is the same as the value in the hidden field eg
12/03/2007, which
is what I want.
Now though, the site has moved to a production web server
with SQL Server.
When I perform this exact insert using the same webpages and
(from what I
can see) the same SQL Server configuration, the date inserts
as 03/12/2007,
US format. This is causing me big problems as the website is
complete but
the wrong dateformat is producing some undesirable results.
The whole site
is set up to expect the original format and I cannot see why
this is
happening.
Does anyone have any suggestions and more importantly how I
can change this
please.There is a real issue here and it has nothing to do with the
way that data
is formatted on the way out.
msSQL does seem to always assume that numbers entered in the
format of
00/00/00 follow the pattern of MM/DD/YY which is American
format. So the 8th
of March entered in UK format of 08/03/2007 ends up being
intrepreted by SQL
as 3rd August. However it only does this up to the 12th of
each month. If
you enter the 13th of March as 13/03/2007 SQL stores it
correctly.
The workaround does seem to enter the number in the
YYYY-MM-DD format as
Julian has suggested.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"Lionstone" <[email protected]> wrote in
message
news:[email protected]...
> SQL Server does not store dates in any format. They are
simply numbers,
> with the integer part representing date and the
fractional part
> representing time. If you do not format dates on the way
out, then you're
> leaving things up to your web server (and depending on
when the dates
> become strings, it might be the ADO provider and not ASP
that does the
> formatting).
>
> The only way to reliably format dates the way you want
is to do so
> explicitly. You may use CONVERT for SQL Server and
specify a format
> option (
http://msdn2.microsoft.com/en-us/library/aa226054(SQL.80).aspx),
> or you may use the FormatDateTime function in your ASP
page.
> FormatDateTime is locale-aware when it formats dates.
All you have to do
> is make sure the locale is set properly (which you seem
to have done).
>
>
>
> "TTal" <[email protected]> wrote in message
> news:[email protected]...
>> Hello All,
>>
>> I have an asp page with a hidden field that holds
<%=Date()%>. Because
>> the Session.LCID is set to UK this value today would
be 12/03/2007 (UK
>> format).
>>
>> When this hidden field is fed into an INSERT Stored
Procedure in SQL
>> Server in my testing environment, the date format
that is inserted into
>> the database is the same as the value in the hidden
field eg 12/03/2007,
>> which is what I want.
>>
>> Now though, the site has moved to a production web
server with SQL
>> Server. When I perform this exact insert using the
same webpages and
>> (from what I can see) the same SQL Server
configuration, the date inserts
>> as 03/12/2007, US format. This is causing me big
problems as the website
>> is complete but the wrong dateformat is producing
some undesirable
>> results. The whole site is set up to expect the
original format and I
>> cannot see why this is happening.
>>
>> Does anyone have any suggestions and more
importantly how I can change
>> this please.
>>
>
> -
Passing in Parameters other then the list of paramters in PL/SQL based Item
When you create an Item Type based on PL/SQL there is a section where you choose the parameters such as Page ID, Page Group... I wanted to pass the parent id to the proc but I dont see an attribute for Parent ID.... how pass the parent id as a parameter to a pl.sql store proc
When you want to link to a portal page the URL contains the parameters pageid, dad, portal, scheme, where
are they define since I created a PL/SQL based stored proc and passing in the page id, site id and parent id
and dont see an option for parent id so how could I use it... I created a custom attribute and passed in the parent id
as well to the following url...
regular url:
http://localhost:7778/portal/page?_pageid=111,222223&_dad=portal&_schema=PORTAL
url with parameter added that gets no result:
http://localhost:7778/portal/page?_pageid=111,222223&_dad=portal&_schema=PORTAL&parentid=28084
if I set the parameter in the Custom Item type to the default value it just remains as the default value
and I am unable to change it... -
Calling a java object from a store procedure
I have written a translation object in java that takes a $en_var in and returns its path.
What I need to do is call that object from a PL/SQL store procedure. All the examples I have seen treat the store procedure as a wrapper around the java object.
But in my store procedure calling the object is only one part of the procedures role:
The store procedure code is :
CREATE OR REPLACE PROCEDURE WRITE_TO_FILE(in_file_name IN VARCHAR, in_en_var IN VARCHAR)
file_handle UTL_FILE.FILE_TYPE;
file_location VARCHAR2(50)
BEGIN
I need to be able to call the javaobject translation here
file_location = translation.translatePath(in_en_var)
file_handle := UTL_FILE.FOPEN(file_location, in_file_name, 'w');
dbms_output.put_line ('input file name opened file name' ||in_file_name ||'-->' ||in_file_location);
UTL_FILE.put_line(file_handle,'Hello Tony);
UTL_FILE.FCLOSE(file_handle);
END WRITE_TO_FILE;
I call the java class method translatePath with a string the en_var which returns the path as a string which is then passed as a parameter to UTL_FILE.FOPEN.
Thanks for any help
TonyNo Longer the problem
-
Standard LSMW to load Routing Long text
We are migrating data to sap for Routings. We are using SAP best practices to load the data into sap using idocs. But we dont have idoc structure to load Long Text.
Do you know a LSMW standard direct input to upload the routing long text.
Please help me out.Yes, you can upload long texts to pretty much any application, routings, boms, material masters, etc.
In LSMW select the following direct input method:
Object 0001 Long texts
Method 0001 (No selection)
Program Name /SAPDMC/SAP_LSMW_IMP
Program Type D Direct Input
You can define the following as constants in field mapping and conversion rule.
TDOBJECT C(010) Text: 'ROUTING'
TDID C(004) Text ID : 'PLKO' <<< if you're uploading to header
TDSPRAS C(001) Language : 'EN'
TDFORMAT C(002) Paragraph format for text line : '*'
If you want upload to operations etc look at the following table
ROUTING PLFH Long Text
ROUTING PLFL Long Text
ROUTING PLFT Long text
ROUTING PLFV Long Text
ROUTING PLKO Long Text
ROUTING PLPH Long text
ROUTING PLPO Long Text
internally SAP stores, routing group with zeros padded on the left. For example if your routing group is 200 it will be stored as 00000200 so in your flat file either you have to pad the zeros or in the LSMW you need to use the conversion exit function module.
You can following link below if you want to deeper understanding on this subject.
Re: LSMW : Long text not visible after the import of data -
Is there a v$parameter table which stores linesize
Hello
I'm writing a simple PL/SQL statement which has a set linesize 100 statement within it.
Since everyone likes to set there linesizes to different values is there a way for me to extract their current linesize so that i can change it back at the end.
thank you
Message was edited by:
briandwyerso that i can change it back at the end.
If I understand your requirement, then this could be the solution:
SQL> show linesize pages
linesize 99
pagesize 100
SQL> store set present create
Created file present
SQL> set linesize 50 pages 10
---- do your works......
SQL> @ present
SQL> show linesize pages
linesize 99
pagesize 100 -
SQL Logs Size Increasing automatically
Hi,
I am facing a very strange issue in my SQL Server 2008 R2 Logs folder.
Actually in every 10 seconds SQLDump0000,SQLDump0001,..... and so on named files are being created automatically in the Logs folder where SQL stores it's logs.I don't know why is this happening.
Due to this issue logs folder size is increased to 160GB and my c drive where windows is installed is keep showing Low space message in fact 0MB space is showing.
Please help urgently.Hi,
I am facing a very strange issue in my SQL Server 2008 R2 Logs folder.
Actually in every 10 seconds SQLDump0000,SQLDump0001,..... and so on named files are being created automatically in the Logs folder where SQL stores it's logs.I don't know why is this happening.
Due to this issue logs folder size is increased to 160GB and my c drive where windows is installed is keep showing Low space message in fact 0MB space is showing.
Please help urgently.
Hello Zubair,
This dumps are getting created due to some issue SQL server is facing.Its not a SQL Server transaction log file dump.I guess your system is not updated to latest Service pack.
Latest Service Pack for SQL server 2008 R2 is SP2.Apply this SP and see if this dump generation subsides.If not you need to raise a case with Microsoft to get these dumps analyzed.
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
How can i return object from oracle in my java code using pl/sql procedure?
How can i return object from oracle in my java code using pl/sql procedure?
And How can i returned varios rows fron a pl/sql store procedure
please send me a example....
Thank you
nullyes, i do
But i can't run this examples...
my problem is that i want recive a object from a PL/SQL
//procedure callObject(miObj out MyObject)
in my java code
public static EmployeeObj callObject(Connection lv_con,
String pv_idEmp)
EmployeeObj ret = new EmployeeObj();
try
CallableStatement cstmt =
lv_con.prepareCall("{call admin.callObject(?)}");
cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
//registerOutParameter(int parameterIndex, int sqlType,String sql_name)
cstmt.execute();
ret = (EmployeeObj) cstmt.getObject(1);
}//try
catch (SQLException ex)
System.out.println("error SQL");
System.out.println ("\n*** SQLException caught ***\n");
while (ex != null)
System.out.println ("SQLState: " + ex.getSQLState ());
System.out.println ("Message: " + ex.getMessage ());
System.out.println ("Vendor: " + ex.getErrorCode ());
ex = ex.getNextException ();
System.out.println ("");
catch (java.lang.Exception ex)
System.out.println("error Lenguaje");
return ret;
Do you have any idea? -
Dynamic SQL : passing table name as parameter
Hi
I have a SQL query (a store procedure ) that i want to convert to PLSQL
This is a part of my SQL query that i am trying to to find a solution for it, because i cant convert it to oracle :
DECLARE lookupTableRow CURSOR FOR
SELECT TableName FROM SYS_LookUpTable
OPEN lookupTableRow
FETCH NEXT FROM lookupTableRow INTO @tableName
WHILE @@FETCH_STATUS=0
BEGIN
SET @sql='SELECT * FROM '+@tableName
EXECUTE sp_executesql @sql
IF @counter=0
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table', @tableName)
END
ELSE
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table'+CONVERT(NVARCHAR(10),@counter), @tableName)
END
SET @counter=@counter+1
FETCH NEXT FROM lookupTableRow INTO @tableName
END
CLOSE lookupTableRow
DEALLOCATE lookupTableRow
As i understand i can't use ORACLE dynamic sql (execute immediate) when the table name is a parameter
Furthermore when i execute this dynamic query in my SQL store procedure each SELECT statement return me as a result the relevant table rows , those result are different in each loop .
So i cant do this too with ORACLE dynamic sql .
Please advice for any solution
* how can i use dynamic sql with table name as parameter ?
* how can i use a "dynamic" cursor, in order to be able to display the dynamic results ?
Thanks for the adviceHi,
b003cf5e-e55d-4ff1-bdd2-f088a662d9f7 wrote:
Hi
I have a SQL query (a store procedure ) that i want to convert to PLSQL
This is a part of my SQL query that i am trying to to find a solution for it, because i cant convert it to oracle :
DECLARE lookupTableRow CURSOR FOR
SELECT TableName FROM SYS_LookUpTable
OPEN lookupTableRow
FETCH NEXT FROM lookupTableRow INTO @tableName
WHILE @@FETCH_STATUS=0
BEGIN
SET @sql='SELECT * FROM '+@tableName
EXECUTE sp_executesql @sql
IF @counter=0
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table', @tableName)
END
ELSE
BEGIN
INSERT INTO T_TABLE_MAPPING VALUES('P_MAIN_METADATA', 'Table'+CONVERT(NVARCHAR(10),@counter), @tableName)
END
SET @counter=@counter+1
FETCH NEXT FROM lookupTableRow INTO @tableName
END
CLOSE lookupTableRow
DEALLOCATE lookupTableRow
As i understand i can't use ORACLE dynamic sql (execute immediate) when the table name is a parameter
Furthermore when i execute this dynamic query in my SQL store procedure each SELECT statement return me as a result the relevant table rows , those result are different in each loop .
So i cant do this too with ORACLE dynamic sql .
Please advice for any solution
* how can i use dynamic sql with table name as parameter ?
* how can i use a "dynamic" cursor, in order to be able to display the dynamic results ?
Thanks for the advice
I have a SQL query (a store procedure ) that i want to convert to PLSQL
I doesn't help when you use one term to mean another thing.
SQL is a language used in both Oracle and other products, such as Microsoft's SQL Server. I don't know much about SQL Server, but Oracle (at least) doesn't support stored procedures in SQL itself; they have to be coded in some other language, such as PL/SQL.
As i understand i can't use ORACLE dynamic sql (execute immediate) when the table name is a parameter
If the table name is a parameter (or only known at run-time for any reason), that's exactly the kind of situation where you MUST use dynamic SQL.
The number of columns that a query produces (and their datatypes) is fixed when you compile a query, whether that query is dynamic or not. If you have multiple queries, that produce result sets with different numbers of columns, then you can't combine them into a single query. The best you can do with one query is to add NULL columns to some of the queries so they all produce the same number of columns.
If you're just displaying the results, there might not be any reason to combine separate result sets. Just display one result set after another.
Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Automate SQL Disaster Recovery
Hi All,
Need some suggestions on automating the SQL DR tasks. Here is the scenario:
- We have a standby SQL Server which regularly gets updated with the content (through SSIS jobs etc) from the Primary SQL Server
- If the Primary SQL Server goes down, we point Lync pool to the backup SQL Store to restore the functionality while we rebuild the primary SQL Server. However this SQL Store change needs the use of Topology Builder (as SQL Server names are not the same),
a task which cannot be automated using Powershell or SQL scripts.
Can the Topology Builder step be automated in anyway?
PS: In OCS we had all tasks automated by using Update-PoolBackend and other cmdlets to point to the backup SQL Server. We want to do the same in Lync too, thereby reducing manual steps.
--HakeemIs your backup SQL server in a remote site or the same site? If it's remote, the only way to provide full HA failover is with a metropolitan data center design with a stretched SQL cluster and VLAN, SAN replication etc. See
this article.
Attempting to replicate or mirror the SQL content (using log shipping or database mirroring) is not supported and doesn't work properly. More info here on my blog http://www.justin-morris.net/sql-database-mirroring-with-lync-server-2010-series-%E2%80%93-backend-databases/.
The introduction of the CMS (xds database) complicates DR somewhat, so you will need to first assess what Lync services you require to be available in a DR situation.
Today, Lync provides voice resiliency quite well in a DR situation, but other services (IM and Presence, Conferencing) require more design work to provide availability in the event of disaster.
Justin Morris | Consultant | Modality Systems
Lync Blog - www.justin-morris.net
Twitter: @jm_deluxe
If this post has been useful please click the green arrow to the left or click "Propose as answer"
Maybe you are looking for
-
Can't get to account wizard to change POP server to IMAP
I want to change my email server to a IMAP from POP, but I can't get to the account wizard pages that led to server information and the selection of POP or IMAP. The present thunberbird email leads me to a page that has no possible choices
-
How do I get rid of a hidden audio file in imovie11
When I export my finished video from Imovie11 an audio file that is not present in the project appears in the finish product after export. When going back to the project in imovie the sound is no where to be found. I've detached all the audio and del
-
Use boolean array to perform set operations
I am currently taking a computer science class that uses Java as the language of choice. I have no prior experience with Java. We have a homework assignment in which we are supposed to use a boolean array to implement set operations. We have to creat
-
Variant BP_CASH does not exist.
Hi frnds, Variant BP_CASH does not exist Message no. DB612 Diagnosis You selected variant BP_CASH for program RFCASH20. This variant does not exist. Procedure Correct the entry. in Prd while doing fbcj tcode. Tryng to take printout of the screen by s
-
How to save configuration of EP6.0?
Hi, how can I save the configuration I applied to my Enterprise Portal so I can easily restore them on a new Portal? Thanks, boris