IZEA

Thursday, May 9, 2013

How To Enable Telnet In Windows Server 2008

Telnet is a network protocol used on the Internet or LAN to provide a bidirectional interactive text-oriented communication facility. Users of different platform use this facility mainly to check the communication between 2 servers or machines. In Windows Server 2008, Telnet is not enabled by default but included as a feature ‘Telnet Client’. Basically allows a computer to connect to a remote Telnet server and run applications on that server.

Unlike Windows 2003, if you give the Telnet command in Windows Server 2008 you will be promoted below message. 


Follow the below steps to enable Telnet on Windows Server 2008.
  • Click Start  > Server Manager, Open Server Manager.


    In Server Manager, click on Features and then Click on Add Features.



    Select Telnet Client from the available list of features, then click Next.


     Installation in Progress...



    Installation is Completed .

    Now run the telnet command and as you expect, it is recognized by Windows Server 2008 and you can start using it to connect to your telnet servers.

Tuesday, April 23, 2013

GAYLE Storm Smashes Pune Warriors



It’s been a day of records in the history of IPL where Chris Gayle (RCB) holds most of it. In the Royal Challengers Bangalore - Pune Warriors India IPL clash, Gayle's fireworks will be remembered by cricket fans for long time.  With his stunning shots, RCB scored the highest T20 score - 263 for five wickets in their 20 overs. "It was one of those days. I got a good total. I can't say it's a decent total - it's a good total. All I had for breakfast this morning was a plain omelet, two pancakes and a hot chocolate." Gayle said after his brutal innings. 

Fastest Century in T20:


Chris Gayle's 30-ball century is fastest ever in IPL. Chris Gayle set a new record for the fastest century in professional cricket by reaching 100 off 30 balls. He scored 175 not out in just 66 balls with 17 sixes and 13 boundaries. He beats the previous 34-ball ton Twenty20 league record set by Australia's Andrew Symonds.  South African Richard Levi holds the record for fastest international T20 hundred in 45 balls against New Zealand in 2011 at Hamilton.  Pakistan's Shahid Afridi holds the record of fastest century in ODI (37 balls) while Viv Richards holds the record of fastest ton (56 balls) in Test history.

Interesting Tweets on Gayle’s show:

Brian Lara: I like that one wen "Gayle bats fielders become spectators and spectators become fielders" chilling @ home watching some awesome hitting.

Mahendra Singh Dhoni: Life is all about taking the right decision, seeing Gayle bat today I think I took the right decision of being a wicket keeper.

Suresh Raina: A ball just flew past Chepauk! Did it come from Chinnaswamy??????

Shilpa Shetty: Unbelievable inning by Gayle! Thank God we r not at the receiving end!!ha ha ha;) Incredible...he makes it all look so easy!

Dale Steyn: Oh no... Actually, Wow!!! This is insane!!

Darren Sammy: @henrygayle he's not human..He’s a tsunami mixed with a nuclear bomb

Saturday, April 20, 2013

ORA-1652: Unable to extend temp segment-RAC

Oracle Error:

ORA-01652: unable to extend temp segment by string in tablespace string 

Eg: ORA-1652: unable to extend temp segment by 128 in tablespace TEMP 

Cause:

In RAC environment, 2 reasons could cause this error.

Case-1:  No space available in the temp table space of which is being used.

Case-2: The second cause may have to do with the local temp segment not being able to extent space even though there is space in other instances.   

Action Plan:

In general, Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated. Normally, you would just add disk to TEMP to avoid the ORA-1652 error, but you can also wait for SMON to clean-up the TEMP segment.

CASE 1:

Find the free space in temp tablespace:

SQL> SELECT tablespace_name, file_name, bytes/1024/1024 size_in_mb from dba_temp_files;

SQL> select sum(free_blocks) from gv$sort_segment where tablespace_name = 'TEMP TABLESPACE NAME';

If the free block reads results '0', it signifies that there is no free space.

Work-around:

Add a new temp file to tablespace or resize the existing temp file.

To add a new file,
SQL> ALTER TABLESPACE ADD DATAFILE|TEMPFILE 'full path and file name' SIZE integer;      

To resize the existing temp file,
SQL> ALTER DATABASE DATAFILE|TEMPFILE ‘/u03/oradata/ temp02. dbf’ RESIZE 200M;

CASE 2:

In RAC, more sort segment space can be used from other instances, which can help resolve ORA-01652 more easily. 

SQL> select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks from gv$sort_segment;

Where total_blocks & used_blocks ---> total temp segment space used &      
free_blocks ---> amount of space allocated to this particular instance.

If used_blocks = total_blocks and free_blocks = 0, it results in ORA-01652 error.

If ORA-01652 is causing the slowdown, SMON will probably not be able to process the sort segment requests. Try one of the following work-around:

1) Increase size of the temp tablespace

SQL> ALTER DATABASE DATAFILE|TEMPFILE ‘/u03/oradata/ userdata02. dbf’ RESIZE 200M;

2) Increase sort_area_size and/or pga_aggregate_target

SQL> alter system set sort_area_size = 32765 scope=both;

SQL> alter session set sort_area_size = 32765 (to modify in the current session itself)

SORT_AREA_SIZE specifies (in bytes) the maximum amount of memory Oracle will use for a sort. After the sort is complete, but before the rows are returned, Oracle releases all of the memory allocated for the sort, except the amount specified by the SORT_AREA_RETAINED_SIZE parameter. After the last row is returned, Oracle releases the remainder of the memory.

SQL> select inst_id, file_id, extents_cached, extents_used from gv$temp_extent_pool order by 1,2;

In RAC, extents are allocated from all temporary files uniformly. There are also changes to file header block during this operation. This is one of the reason, to create many temporary files in RAC. If you have 24 nodes in your RAC cluster, yes, that would imply that you would have to create 24 temp files to the TEMP table space.
 

Friday, April 19, 2013

How to Compile Cobol Program in Windows

The steps for compiling COBOL locally are:
  • Install Microfocus NetExpress
  • Set PS_HOME and COBROOT
  • Navigate to PS_HOME/Setup in cmd prompt and execute below command.

CBLBLD CompileDrive \CompileDirectory

Eg: CBLBLD C:  \TEMP\COMPILE



The above screenshot shows the real time example of COBOL Compilation.

During the compilation process the following actions occur;

Source files   will be copied
                  From PS_HOME\src\cbl (D:\PTHCM91\src\cbl)
                  To    Compile Drive\Compile Directory

Compiled modules will be copied
                  From Compile Drive\Compile Directory
                  To   PS_HOME\CBLBINDR (D:\PTHCM91\CBLBINA, CBLBINA or CBLBINU)


CBLBINA, CBLBINE or CBLBINU is based on the compilation mode of ASCII (unicode), EBCDIC or Unicode respectively. 
 
COBOL Process Test: 

Once compilation is done, run the COBOL test process.

 PeopleTools ---> Process Scheduler ---> System Process Requests


Remote Call test:

Sometimes AE process calls COBOL files remotely to execute as a part of workflow. To ensure its proper function, Remote call test should result in below message (screenshot).
.
 PeopleTools ---> Utilities ---> Debug ---> People Tools Test Utilities